diff options
author | Varun Wadekar <vwadekar@nvidia.com> | 2011-12-01 15:59:59 +0530 |
---|---|---|
committer | Varun Wadekar <vwadekar@nvidia.com> | 2011-12-26 21:15:02 -0800 |
commit | 456363b8d52925d43f9255b2152935cf0d39aabe (patch) | |
tree | f7647b85ed3cd5ced81d9e70101069037c10ad24 /drivers/bluetooth | |
parent | c6085f690afb698aac83531baa76b7c4e4a2ac3d (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
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); |