OSDN Git Service

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)
committerColin Cross <ccross@android.com>
Thu, 8 Sep 2011 00:30:23 +0000 (17:30 -0700)
commit07b26cd3da54bf9ff3723805e19bcc2dffb48297
tree0de8b79730fe1b6a6c1f23e21fe1f790aeff8042
parent686d33a258c7f7e8c86ee55c1d7155f3586d1f55
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