Skip to contentSkip to conversation

mmc: test: remove the shutdown function

PATCH In review Yue Hu 2 participants 2 messages Jan 19, 2021 – Jan 20, 2021 MMC, SD and SDIO

lore
Share & tools
lore

Yue Hu

author
#0 lore raw

PATCH 1/1 mmc: test: remove the shutdown function

From: Yue Hu <[email protected]>

Since it's doing nothing for shutdown behavior. And the callback will be checked firstly in mmc_bus_shutdown().

---
 drivers/mmc/core/mmc_test.c | 5 -----
 1 file changed, 5 deletions(-)
drivers/mmc/core/mmc_test.c +0 -5
index 152e752..f999b48 100644
@@ -3267,17 +3267,12 @@ static void mmc_test_remove(struct mmc_card *card)
 	mmc_test_free_dbgfs_file(card);
 }
 
-static void mmc_test_shutdown(struct mmc_card *card)
-{
-}
-
 static struct mmc_driver mmc_driver = {
 	.drv		= {
 		.name	= "mmc_test",
 	},
 	.probe		= mmc_test_probe,
 	.remove		= mmc_test_remove,
-	.shutdown	= mmc_test_shutdown,
 };
 
 static int __init mmc_test_init(void)
Signature · 1 line
1.9.1
#1 lore raw
Quoted 7 lines · Yue Hu

From: Yue Hu <[email protected]>

Since it's doing nothing for shutdown behavior. And the callback will be checked firstly in mmc_bus_shutdown().

Applied for next, thanks!

Kind regards
Uffe

Quoted 29 lines
---
 drivers/mmc/core/mmc_test.c | 5 -----
 1 file changed, 5 deletions(-)
drivers/mmc/core/mmc_test.c +0 -6
index 152e752..f999b48 100644
@@ -3267,17 +3267,12 @@ static void mmc_test_remove(struct mmc_card *card)
        mmc_test_free_dbgfs_file(card);
 }
 
-static void mmc_test_shutdown(struct mmc_card *card)
-{
-}
-
 static struct mmc_driver mmc_driver = {
        .drv            = {
                .name   = "mmc_test",
        },
        .probe          = mmc_test_probe,
        .remove         = mmc_test_remove,
-       .shutdown       = mmc_test_shutdown,
 };
 
 static int __init mmc_test_init(void)
--

1.9.1