mmc: core: Initiate suspend|resume from mmc bus instead of mmc host
authorUlf Hansson <ulf.hansson@linaro.org>
Mon, 10 Jun 2013 15:03:39 +0000 (17:03 +0200)
committerChris Ball <cjb@laptop.org>
Thu, 27 Jun 2013 16:39:17 +0000 (12:39 -0400)
commit986892ca78eeddd9d6b629050fea432979ddd321
tree32c3d793438b848af46ff10b7fcb28cb3982e4d0
parent74590263384e5d4601de7f0ee2790477578829ea
mmc: core: Initiate suspend|resume from mmc bus instead of mmc host

The host should be responsible to suspend|resume the host and not the
card. This patch changes this behaviour, by moving the responsiblity
to the mmc bus instead which already holds the card device.

The exported functions mmc_suspend|resume_host are now to be considered
as depcrecated. Once all host drivers moves away from using them, we
can remove them. As of now, a successful error code is always returned.

Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Tested-by: Jaehoon Chung <jh80.chung@samsung.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/core/bus.c
drivers/mmc/core/core.c