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)
committerColin Cross <ccross@android.com>
Tue, 14 Jun 2011 16:09:27 +0000 (09:09 -0700)
Signed-off-by: San Mehat <san@google.com>
drivers/mmc/core/core.c

index 3d9b0e16b4a4a7762699dd5cc181fc34304b6ec6..beb5b8797f50ff8346d4595271a5f84ca8e45e2f 100644 (file)
@@ -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);
 }
 
 /**