mmc: core: Handle card shutdown from mmc_bus
authorUlf Hansson <ulf.hansson@linaro.org>
Mon, 10 Jun 2013 15:03:40 +0000 (17:03 +0200)
committerlintao <lintao@rock-chips.com>
Fri, 7 Mar 2014 11:52:34 +0000 (19:52 +0800)
commita96f0611079cfea124840fc0820609174d731dfa
tree0aaea2e39533cf64f727a284eed1c8ff2a08a9cf
parent3eb611d9d7f383ff5e8ba750846a680880ae714f
mmc: core: Handle card shutdown from mmc_bus

Considering shutdown of the card, the responsibility to initate this
sequence shall be driven from the mmc_bus.

This patch enables the mmc_bus to handle this sequence properly. A new
.shutdown callback is added in the mmc_driver struct which is used to
shutdown the blk device.

Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Chris Ball <cjb@laptop.org>
Conflicts:
drivers/mmc/core/bus.c
drivers/mmc/core/bus.c