]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
mmc: core: Add shutdown callback for SD bus_ops
authorUlf Hansson <ulf.hansson@linaro.org>
Mon, 10 Jun 2013 15:03:42 +0000 (17:03 +0200)
committerChris Ball <cjb@laptop.org>
Thu, 27 Jun 2013 16:39:19 +0000 (12:39 -0400)
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>
drivers/mmc/core/sd.c

index cacef27b00d15704b5fbd7811ffbd03f642769bf..176d125f5b577c697f90396b0243258977239548 100644 (file)
@@ -1170,6 +1170,7 @@ static const struct mmc_bus_ops mmc_sd_ops = {
        .resume = NULL,
        .power_restore = mmc_sd_power_restore,
        .alive = mmc_sd_alive,
+       .shutdown = mmc_sd_suspend,
 };
 
 static const struct mmc_bus_ops mmc_sd_ops_unsafe = {
@@ -1181,6 +1182,7 @@ static const struct mmc_bus_ops mmc_sd_ops_unsafe = {
        .resume = mmc_sd_resume,
        .power_restore = mmc_sd_power_restore,
        .alive = mmc_sd_alive,
+       .shutdown = mmc_sd_suspend,
 };
 
 static void mmc_sd_attach_bus_ops(struct mmc_host *host)