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)
committerDan Willemsen <dwillemsen@nvidia.com>
Thu, 1 Dec 2011 05:39:03 +0000 (21:39 -0800)
commit960cc8807bd1ebc657dd7921509b1ce246a1b10b
tree077dbed0d9e746176ea67a4caf8124282c900d53
parentd23e8450fb66d8080c9c71a2af2d1eb7c3891734
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