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>
Thu, 30 Sep 2010 00:49:27 +0000 (17:49 -0700)
Signed-off-by: San Mehat <san@google.com>
drivers/mmc/core/core.c

index 5b94b71d1c5a356279467c4f8c677f49a191e052..708f33f20cb7d3c10df4a9d19b8bacce3c17eace 100644 (file)
@@ -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);
 }
 
 /**