From 617a3dcb3fc460098b5347b9c49ff59ce6f4b05d Mon Sep 17 00:00:00 2001 From: San Mehat Date: Tue, 9 Feb 2010 12:08:48 -0800 Subject: [PATCH] mmc: core: Release delayed mmc work wakelock after deep disable Signed-off-by: San Mehat --- drivers/mmc/core/core.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/mmc/core/core.c b/drivers/mmc/core/core.c index 3d9b0e16b4a4..beb5b8797f50 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); } /** -- 2.34.1