mmc: core: Release delayed mmc work wakelock after deep disable
authorSan Mehat <san@google.com>
Tue, 9 Feb 2010 20:08:48 +0000 (12:08 -0800)
committerSan Mehat <san@google.com>
Tue, 9 Feb 2010 20:09:28 +0000 (12:09 -0800)
Signed-off-by: San Mehat <san@google.com>
drivers/mmc/core/core.c

index 3bc1081a464180d538c5e3b6af637fe7bf3597ef..fb25fd001f4a33672885789d0dbc7cd068af7391 100644 (file)
@@ -532,9 +532,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);
 }
 
 /**