diff options
author | Corentin Chary <corentincj@iksaif.net> | 2009-04-27 07:23:43 (GMT) |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2009-05-14 15:28:27 (GMT) |
commit | bd32005e126a465deda5d046a62f6bb842f4d9cf (patch) | |
tree | 71f00940ceb8b1b8cfb3ebdf503937dbef5d3f54 /drivers/platform | |
parent | 309f5fbda37d5e8f1233e8b80b8e9de77262e864 (diff) | |
download | linux-bd32005e126a465deda5d046a62f6bb842f4d9cf.tar.xz |
eeepc-laptop: unregister_rfkill_notifier on failure
If there is a failure during eeepc_hotk_add() we need
to remove the acpi_notify_handler.
Signed-off-by: Corentin Chary <corentincj@iksaif.net>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/platform')
-rw-r--r-- | drivers/platform/x86/eeepc-laptop.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/platform/x86/eeepc-laptop.c b/drivers/platform/x86/eeepc-laptop.c index 7aaf587..353a898 100644 --- a/drivers/platform/x86/eeepc-laptop.c +++ b/drivers/platform/x86/eeepc-laptop.c @@ -748,6 +748,8 @@ static int eeepc_hotk_add(struct acpi_device *device) wlan_fail: if (ehotk->eeepc_wlan_rfkill) rfkill_free(ehotk->eeepc_wlan_rfkill); + eeepc_unregister_rfkill_notifier("\\_SB.PCI0.P0P6"); + eeepc_unregister_rfkill_notifier("\\_SB.PCI0.P0P7"); ehotk_fail: kfree(ehotk); ehotk = NULL; |