summaryrefslogtreecommitdiff
path: root/drivers/mmc/core/core.c
diff options
context:
space:
mode:
authorSan Mehat <san@google.com>2010-02-09 12:08:48 -0800
committerColin Cross <ccross@android.com>2011-06-14 09:09:27 -0700
commit617a3dcb3fc460098b5347b9c49ff59ce6f4b05d (patch)
treece02a4e1ae383585bc8f8d50c152f5837885b10e /drivers/mmc/core/core.c
parent5fec81a237197cc64b9d23ccbfdbf643c88a5a91 (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/core.c')
-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 3d9b0e16b4a..beb5b8797f5 100644
--- a/drivers/mmc/core/core.c
+++ b/drivers/mmc/core/core.c
@@ -559,9 +559,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);
}
/**