summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCorentin Chary <corentincj@iksaif.net>2009-04-27 09:23:43 +0200
committerLen Brown <len.brown@intel.com>2009-05-14 11:28:27 -0400
commitbd32005e126a465deda5d046a62f6bb842f4d9cf (patch)
tree71f00940ceb8b1b8cfb3ebdf503937dbef5d3f54
parent309f5fbda37d5e8f1233e8b80b8e9de77262e864 (diff)
downloadop-kernel-dev-bd32005e126a465deda5d046a62f6bb842f4d9cf.zip
op-kernel-dev-bd32005e126a465deda5d046a62f6bb842f4d9cf.tar.gz
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>
-rw-r--r--drivers/platform/x86/eeepc-laptop.c2
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;
OpenPOWER on IntegriCloud