mmc: sdio: ensure mmc_sdio_detect is powered
commit87973ba27b751353e2915cb3aa5c0e0dc6a79a4f
authorOhad Ben-Cohen <ohad@wizery.com>
Sat, 2 Oct 2010 11:54:12 +0000 (2 13:54 +0200)
committerChris Ball <cjb@laptop.org>
Sat, 23 Oct 2010 13:11:18 +0000 (23 21:11 +0800)
tree02c84b25c7697eed2c82d08ae5bf4308e6efe9fd
parent40bba0c1ca83a370f749c8bc9afda71cf79ebd91
mmc: sdio: ensure mmc_sdio_detect is powered

To prevent an erroneous removal of the card, make sure
the device is powered when it is mmc_sdio_detect()ed.

This is required since mmc_sdio_detect may be invoked
while the device is runtime suspended (e.g., MMC core
is rescanning when system comes out of suspend).

Signed-off-by: Ohad Ben-Cohen <ohad@wizery.com>
Tested-by: Luciano Coelho <luciano.coelho@nokia.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/core/sdio.c