diff mbox series

[-next,4/4] mmc: sunplus: remove unnecessary platform_set_drvdata()

Message ID 20230807141704.3486854-5-yangyingliang@huawei.com
State New
Headers show
Series mmc: remove unnecessary set_drvdata() function | expand

Commit Message

Yang Yingliang Aug. 7, 2023, 2:17 p.m. UTC
Remove unnecessary platform_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/host/sunplus-mmc.c | 1 -
 1 file changed, 1 deletion(-)
diff mbox series

Patch

diff --git a/drivers/mmc/host/sunplus-mmc.c b/drivers/mmc/host/sunplus-mmc.c
index a55a87f64d2a..e9f33976c94e 100644
--- a/drivers/mmc/host/sunplus-mmc.c
+++ b/drivers/mmc/host/sunplus-mmc.c
@@ -955,7 +955,6 @@  static int spmmc_drv_remove(struct platform_device *dev)
 	clk_disable_unprepare(host->clk);
 	pm_runtime_put_noidle(&dev->dev);
 	pm_runtime_disable(&dev->dev);
-	platform_set_drvdata(dev, NULL);
 	mmc_free_host(host->mmc);
 
 	return 0;