summaryrefslogtreecommitdiff
path: root/drivers/mmc/host/sunplus-mmc.c
diff options
context:
space:
mode:
authorYang Yingliang <yangyingliang@huawei.com>2023-08-08 15:15:13 +0300
committerUlf Hansson <ulf.hansson@linaro.org>2023-08-09 16:44:17 +0300
commit283cf357b02848a48eb544e3cde993254fc2c19e (patch)
tree3515a81455cf4a5d6c81641fa70b0dc90647e3ef /drivers/mmc/host/sunplus-mmc.c
parent117d73b18441638b85b3963256c846509c6138f1 (diff)
downloadlinux-283cf357b02848a48eb544e3cde993254fc2c19e.tar.xz
mmc: remove unnecessary set_drvdata() function
The driver data will be cleared in device_unbind_cleanup() in driver core code. So the set_drvdata(..., NULL) called in remove and error path in probe can be removed. Signed-off-by: Yang Yingliang <yangyingliang@huawei.com> Link: https://lore.kernel.org/r/20230808121513.553143-1-yangyingliang@huawei.com Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/mmc/host/sunplus-mmc.c')
-rw-r--r--drivers/mmc/host/sunplus-mmc.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/mmc/host/sunplus-mmc.c b/drivers/mmc/host/sunplus-mmc.c
index e9cb1a57cb75..37ebed040807 100644
--- a/drivers/mmc/host/sunplus-mmc.c
+++ b/drivers/mmc/host/sunplus-mmc.c
@@ -948,7 +948,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);
return 0;
}