diff options
author | San Mehat <san@google.com> | 2010-02-09 12:08:48 -0800 |
---|---|---|
committer | Colin Cross <ccross@android.com> | 2011-06-14 09:09:27 -0700 |
commit | 617a3dcb3fc460098b5347b9c49ff59ce6f4b05d (patch) | |
tree | ce02a4e1ae383585bc8f8d50c152f5837885b10e /drivers/mmc | |
parent | 5fec81a237197cc64b9d23ccbfdbf643c88a5a91 (diff) | |
download | kernel_samsung_aries-617a3dcb3fc460098b5347b9c49ff59ce6f4b05d.zip kernel_samsung_aries-617a3dcb3fc460098b5347b9c49ff59ce6f4b05d.tar.gz kernel_samsung_aries-617a3dcb3fc460098b5347b9c49ff59ce6f4b05d.tar.bz2 |
mmc: core: Release delayed mmc work wakelock after deep disable
Signed-off-by: San Mehat <san@google.com>
Diffstat (limited to 'drivers/mmc')
-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 3d9b0e1..beb5b87 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); } /** |