summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorSan Mehat <san@google.com>2011-12-13 01:22:04 +0800
committerAndy Green <andy.green@linaro.org>2011-12-26 16:42:06 +0800
commit53c2523d8435faf84c59f8908888ae59fcb80f9d (patch)
treeec538a6ed137f26733891cc6e1de55233ac84113 /drivers
parent4d6fa3206b9ce7bf3c8db1f8762ebf2cb1dfb320 (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.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/mmc/core/core.c b/drivers/mmc/core/core.c
index 3f1316e390b..adcc2f85c19 100644
--- a/drivers/mmc/core/core.c
+++ b/drivers/mmc/core/core.c
@@ -783,9 +783,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);
}
/**