diff mbox series

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

Message ID 20230807124443.3431366-2-yangyingliang@huawei.com (mailing list archive)
State New, archived
Headers show
Series [-next,1/2] mmc: wbsd: fix double mmc_free_host() in wbsd_init() | expand

Commit Message

Yang Yingliang Aug. 7, 2023, 12:44 p.m. UTC
Remove unnecessary dev_set_drvdata() in ->remove(), and
in error path in ->probe(), the driver_data will be set
to NULL in device_unbind_cleanup() in driver core code.

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

Patch

diff --git a/drivers/mmc/host/wbsd.c b/drivers/mmc/host/wbsd.c
index bf2a92fba0ed..0589d169e8fb 100644
--- a/drivers/mmc/host/wbsd.c
+++ b/drivers/mmc/host/wbsd.c
@@ -1264,8 +1264,6 @@  static void wbsd_free_mmc(struct device *dev)
 	del_timer_sync(&host->ignore_timer);
 
 	mmc_free_host(mmc);
-
-	dev_set_drvdata(dev, NULL);
 }
 
 /*