aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mmc
diff options
context:
space:
mode:
authorUlf Hansson <ulf.hansson@linaro.org>2013-06-10 11:03:42 -0400
committerChris Ball <cjb@laptop.org>2013-06-27 12:39:19 -0400
commit5992e78697484d8f58b749f87a06f89f4ba40a47 (patch)
treef67fe5fac9afcac4580eb1ff40bebb55f4016599 /drivers/mmc
parent6b086bde71243e2596f9d8e3c060119b84110d33 (diff)
mmc: core: Add shutdown callback for SD bus_ops
For the SD .shutdown callback we re-use the SD suspend function since it performs the relevant actions. Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org> Signed-off-by: Chris Ball <cjb@laptop.org>
Diffstat (limited to 'drivers/mmc')
-rw-r--r--drivers/mmc/core/sd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/mmc/core/sd.c b/drivers/mmc/core/sd.c
index cacef27b00d1..176d125f5b57 100644
--- a/drivers/mmc/core/sd.c
+++ b/drivers/mmc/core/sd.c
@@ -1170,6 +1170,7 @@ static const struct mmc_bus_ops mmc_sd_ops = {
1170 .resume = NULL, 1170 .resume = NULL,
1171 .power_restore = mmc_sd_power_restore, 1171 .power_restore = mmc_sd_power_restore,
1172 .alive = mmc_sd_alive, 1172 .alive = mmc_sd_alive,
1173 .shutdown = mmc_sd_suspend,
1173}; 1174};
1174 1175
1175static const struct mmc_bus_ops mmc_sd_ops_unsafe = { 1176static const struct mmc_bus_ops mmc_sd_ops_unsafe = {
@@ -1181,6 +1182,7 @@ static const struct mmc_bus_ops mmc_sd_ops_unsafe = {
1181 .resume = mmc_sd_resume, 1182 .resume = mmc_sd_resume,
1182 .power_restore = mmc_sd_power_restore, 1183 .power_restore = mmc_sd_power_restore,
1183 .alive = mmc_sd_alive, 1184 .alive = mmc_sd_alive,
1185 .shutdown = mmc_sd_suspend,
1184}; 1186};
1185 1187
1186static void mmc_sd_attach_bus_ops(struct mmc_host *host) 1188static void mmc_sd_attach_bus_ops(struct mmc_host *host)