diff options
author | David Yu <davyu@nvidia.com> | 2014-01-24 15:28:59 +0900 |
---|---|---|
committer | Harry Hong <hhong@nvidia.com> | 2014-01-26 22:16:03 -0800 |
commit | 2e9f249d65d3fca96a18137cb193643ba5197577 (patch) | |
tree | 67a8c7d4cc36cecd44f5e169b6b623604c8e7af0 /include | |
parent | 737c254bc98bb1ea2de79784da67511625dbc36b (diff) |
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.
Bug 1445876
Change-Id: I947315a7102606a1873eeebf136d741c98b46c76
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Chris Ball <cjb@laptop.org>
Signed-off-by: David Yu <davyu@nvidia.com>
Reviewed-on: http://git-master/r/359692
Reviewed-by: Harry Hong <hhong@nvidia.com>
Tested-by: Harry Hong <hhong@nvidia.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/mmc/card.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/mmc/card.h b/include/linux/mmc/card.h index 47ca817bb805..ad29abaeb919 100644 --- a/include/linux/mmc/card.h +++ b/include/linux/mmc/card.h @@ -517,6 +517,7 @@ struct mmc_driver { void (*remove)(struct mmc_card *); int (*suspend)(struct mmc_card *); int (*resume)(struct mmc_card *); + void (*shutdown)(struct mmc_card *); }; extern int mmc_register_driver(struct mmc_driver *); |