Skip to content

Commit

Permalink
mmc: core: Add shutdown callback for SD bus_ops
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Ulf Hansson authored and Chris Ball committed Jun 27, 2013
1 parent 6b086bd commit 5992e78
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/mmc/core/sd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand All @@ -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)
Expand Down

0 comments on commit 5992e78

Please sign in to comment.