|
@@ -2403,8 +2403,7 @@ static void mmc_blk_remove(struct mmc_card *card)
|
|
|
mmc_set_drvdata(card, NULL);
|
|
|
}
|
|
|
|
|
|
-#ifdef CONFIG_PM
|
|
|
-static int mmc_blk_suspend(struct mmc_card *card)
|
|
|
+static int _mmc_blk_suspend(struct mmc_card *card)
|
|
|
{
|
|
|
struct mmc_blk_data *part_md;
|
|
|
struct mmc_blk_data *md = mmc_get_drvdata(card);
|
|
@@ -2419,6 +2418,17 @@ static int mmc_blk_suspend(struct mmc_card *card)
|
|
|
return 0;
|
|
|
}
|
|
|
|
|
|
+static void mmc_blk_shutdown(struct mmc_card *card)
|
|
|
+{
|
|
|
+ _mmc_blk_suspend(card);
|
|
|
+}
|
|
|
+
|
|
|
+#ifdef CONFIG_PM
|
|
|
+static int mmc_blk_suspend(struct mmc_card *card)
|
|
|
+{
|
|
|
+ return _mmc_blk_suspend(card);
|
|
|
+}
|
|
|
+
|
|
|
static int mmc_blk_resume(struct mmc_card *card)
|
|
|
{
|
|
|
struct mmc_blk_data *part_md;
|
|
@@ -2451,6 +2461,7 @@ static struct mmc_driver mmc_driver = {
|
|
|
.remove = mmc_blk_remove,
|
|
|
.suspend = mmc_blk_suspend,
|
|
|
.resume = mmc_blk_resume,
|
|
|
+ .shutdown = mmc_blk_shutdown,
|
|
|
};
|
|
|
|
|
|
static int __init mmc_blk_init(void)
|