summaryrefslogtreecommitdiff
path: root/drivers/mmc/core
diff options
context:
space:
mode:
authorSan Mehat <san@google.com>2010-02-09 12:08:48 -0800
committerDan Willemsen <dwillemsen@nvidia.com>2011-11-30 21:38:15 -0800
commit32b0858996b465913dfde49aa2c568dc273fd47c (patch)
treef94055acda6e2481411aae97261d07f2c52e376c /drivers/mmc/core
parentcccdf161d25abf929efa998b42b5436ad32f3420 (diff)
mmc: core: Release delayed mmc work wakelock after deep disable
Signed-off-by: San Mehat <san@google.com>
Diffstat (limited to 'drivers/mmc/core')
-rw-r--r--drivers/mmc/core/core.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/mmc/core/core.c b/drivers/mmc/core/core.c
index 2b4a9ad728fc..86ad1990a60c 100644
--- a/drivers/mmc/core/core.c
+++ b/drivers/mmc/core/core.c
@@ -653,9 +653,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);
}
/**