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)
committerlintao <lintao@rock-chips.com>
Fri, 7 Mar 2014 05:07:41 +0000 (13:07 +0800)
commitaec2327ed02458b481caa2b3943401a7a33ff18f
tree779a2fba5aa0537f59071d28d1c642bff9136ae2
parent8acf2c95afce699dbebd7b3be7de3b3fa52c0427
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>
Conflicts:
drivers/mmc/core/core.c
drivers/mmc/core/bus.c
drivers/mmc/core/core.c