Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Ulf Hansson and committed by
Chris Ball
5992e786 6b086bde

+2
+2
drivers/mmc/core/sd.c
··· 1170 1170 .resume = NULL, 1171 1171 .power_restore = mmc_sd_power_restore, 1172 1172 .alive = mmc_sd_alive, 1173 + .shutdown = mmc_sd_suspend, 1173 1174 }; 1174 1175 1175 1176 static const struct mmc_bus_ops mmc_sd_ops_unsafe = { ··· 1182 1181 .resume = mmc_sd_resume, 1183 1182 .power_restore = mmc_sd_power_restore, 1184 1183 .alive = mmc_sd_alive, 1184 + .shutdown = mmc_sd_suspend, 1185 1185 }; 1186 1186 1187 1187 static void mmc_sd_attach_bus_ops(struct mmc_host *host)