diff options
author | Varun Wadekar <vwadekar@nvidia.com> | 2011-12-01 15:59:59 +0530 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2013-09-14 01:37:41 -0700 |
commit | eb3d1509e1c941218b08b99af3e7f070ba1cf1e7 (patch) | |
tree | 96b54412acc364358418178a740f366343c2f6ef /drivers/bluetooth | |
parent | 17b4c71a99eebbe8851b4951030cc394e274ee39 (diff) |
bluetooth: bluesleep: call free_irq during driver unload only
Change-Id: Iabad9617752af43c7184d0335177c60fba6bd715
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/67654
Reviewed-by: Rakesh Goyal <rgoyal@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Rebase-Id: Rd5f69db219cd143f32ae5c8fbaa9d09d6ae349fb
Diffstat (limited to 'drivers/bluetooth')
-rw-r--r-- | drivers/bluetooth/bluesleep.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/bluetooth/bluesleep.c b/drivers/bluetooth/bluesleep.c index 45679ed24ae8..0e2ec0befbe3 100644 --- a/drivers/bluetooth/bluesleep.c +++ b/drivers/bluetooth/bluesleep.c @@ -374,7 +374,6 @@ static int bluesleep_start(void) retval = enable_irq_wake(bsi->host_wake_irq); if (retval < 0) { BT_ERR("Couldn't enable BT_HOST_WAKE as wakeup interrupt"); - free_irq(bsi->host_wake_irq, NULL); goto fail; } #endif @@ -419,7 +418,6 @@ static void bluesleep_stop(void) if (disable_irq_wake(bsi->host_wake_irq)) BT_ERR("Couldn't disable hostwake IRQ wakeup mode\n"); #endif - free_irq(bsi->host_wake_irq, NULL); wake_lock_timeout(&bsi->wake_lock, HZ / 2); } /** @@ -683,6 +681,7 @@ free_bsi: static int bluesleep_remove(struct platform_device *pdev) { + free_irq(bsi->host_wake_irq, NULL); gpio_free(bsi->host_wake); gpio_free(bsi->ext_wake); wake_lock_destroy(&bsi->wake_lock); |