mmc: core: host: only use wakelock for detect work
authorColin Cross <ccross@android.com>
Thu, 8 Sep 2011 00:28:58 +0000 (17:28 -0700)
committermgross <mark.gross@intel.com>
Wed, 9 Nov 2011 20:23:38 +0000 (12:23 -0800)
commit7356975fad287c1cd9ca32d9d1c6ab001eacd62d
treecda17b83d540828d6fb868483523773886c837e8
parent3f019a83b313076e312c703869a32e6884a8043e
mmc: core: host: only use wakelock for detect work

There is no need to take a wakelock for delayed lazy disable
work, it will be cancelled in the suspend handler and force
disabled.  Only take the wakelock when the detect work is
queued, and make sure to drop the wakelock if the work is
cancelled.

Change-Id: I1e507a5f98848954ea21d45e23b6192c3132a349
Signed-off-by: Colin Cross <ccross@android.com>
drivers/mmc/core/core.c
drivers/mmc/core/host.c
include/linux/mmc/host.h