diff options
author | San Mehat <san@google.com> | 2010-02-09 12:08:48 -0800 |
---|---|---|
committer | Colin Cross <ccross@android.com> | 2012-02-14 11:26:19 -0800 |
commit | fdb7587cf12bf9c325eeec456d035145d51e4365 (patch) | |
tree | c7d9662f8cc165e60159e3737f69492b8753a61e /drivers | |
parent | d431f5275f8033f633c7474c6d8c748678907f9d (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 c591b80e910..a8c917d1a06 100644 --- a/drivers/mmc/core/core.c +++ b/drivers/mmc/core/core.c @@ -789,9 +789,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); } /** |