mmc: core: Stop bkops for eMMC only from mmc suspend
authorUlf Hansson <ulf.hansson@linaro.org>
Thu, 2 May 2013 12:02:36 +0000 (14:02 +0200)
committerChris Ball <cjb@laptop.org>
Sun, 26 May 2013 18:23:15 +0000 (14:23 -0400)
commit39b9431b0f371294dd2d1a492cf77f2f17390a1f
tree40776c2961dd27dcc7b58becdb86e7ffde0d77ee
parent0c5ce16bc11ae3b80d2e3f6caf4483162acb1f62
mmc: core: Stop bkops for eMMC only from mmc suspend

Move mmc suspend specific operations to be executed from the .suspend
callback in the mmc bus_ops. This simplifies the mmc_suspend_host
function which is supposed to handle nothing but common suspend tasks.

Since eMMC can be considered non-removable there are no need to check
for ongoing bkops at PM_SUSPEND_PREPARE notification so remove it.

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/mmc.c