From 3c248f17304fc53bac948aef9ddd6f0f93bffa46 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 ec0ed8ced6b3..fd845f36bb37 100644 --- a/drivers/mmc/core/core.c +++ b/drivers/mmc/core/core.c @@ -548,9 +548,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.11.0