diff options
author | San Mehat <san@google.com> | 2011-11-20 09:53:33 +0800 |
---|---|---|
committer | Andy Green <andy.green@linaro.org> | 2011-11-20 10:18:03 +0800 |
commit | 359228159545c3ddc932c8eacd35099f87d4cb01 (patch) | |
tree | ae31925aee06fbae8774703ab2a901ab7109ff9f /drivers | |
parent | 031bf28afb144928df7fa5afc1147c53e4e9b5b5 (diff) |
mmc: core: Release delayed mmc work wakelock after deep disable
Signed-off-by: San Mehat <san@google.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/mmc/core/core.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/mmc/core/core.c b/drivers/mmc/core/core.c index 8f379c26d6a..c5226336063 100644 --- a/drivers/mmc/core/core.c +++ b/drivers/mmc/core/core.c @@ -771,9 +771,12 @@ void mmc_host_deeper_disable(struct work_struct *work) /* If the host is claimed then we do not want to disable it anymore */ if (!mmc_try_claim_host(host)) - return; + goto out; mmc_host_do_disable(host, 1); mmc_do_release_host(host); + +out: + wake_unlock(&mmc_delayed_work_wake_lock); } /** |