mmc: core: Restructure and simplify code for mmc sleep|awake
authorUlf Hansson <ulf.hansson@linaro.org>
Fri, 19 Apr 2013 13:12:11 +0000 (15:12 +0200)
committerlintao <lintao@rock-chips.com>
Fri, 7 Mar 2014 04:48:03 +0000 (12:48 +0800)
commitd7b8a89726f3b830243baa248c5d08a879c36a8e
tree73f23d1b76ec22eb8add001f3374082749824fce
parent0a82e11529ad0a900534c68958a1baf37c1afa2d
mmc: core: Restructure and simplify code for mmc sleep|awake

The mmc_card_sleep|awake APIs are not being used since the support is
already properly encapsulated within the suspend sequence. Sleep|awake
command is also specific for eMMC.

We remove the sleep|awake bus_ops, the mmc_card_sleep|awake APIs and
move the code into the mmc specific core instead. This also includes
the mmc ops function, mmc_sleepawake. All releated functions have then
become static and we have got far less code to maintain.

Additionally this patch also simplifies the code from mmc_sleepawake,
since it is only used to put the card to sleep and not awake.

Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/core/core.c
drivers/mmc/core/core.h
drivers/mmc/core/mmc.c
drivers/mmc/core/mmc_ops.c
drivers/mmc/core/mmc_ops.h
include/linux/mmc/host.h