diff mbox series

[-next,2/4] mmc: block: remove unnecessary dev_set_drvdata()

Message ID 20230807141704.3486854-3-yangyingliang@huawei.com (mailing list archive)
State New, archived
Headers show
Series mmc: remove unnecessary set_drvdata() function | expand

Commit Message

Yang Yingliang Aug. 7, 2023, 2:17 p.m. UTC
Remove unnecessary dev_set_drvdata(..., NULL) in ->remove(),
the driver_data will be set to NULL in device_unbind_cleanup()
after calling ->remove() in driver call code.

Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
---
 drivers/mmc/core/block.c | 1 -
 1 file changed, 1 deletion(-)
diff mbox series

Patch

diff --git a/drivers/mmc/core/block.c b/drivers/mmc/core/block.c
index f701efb1fa78..2d734b325287 100644
--- a/drivers/mmc/core/block.c
+++ b/drivers/mmc/core/block.c
@@ -3025,7 +3025,6 @@  static void mmc_blk_remove(struct mmc_card *card)
 		pm_runtime_disable(&card->dev);
 	pm_runtime_put_noidle(&card->dev);
 	mmc_blk_remove_req(md);
-	dev_set_drvdata(&card->dev, NULL);
 	destroy_workqueue(card->complete_wq);
 }