The driver data will be set to NULL in device_unbind_cleanup() in driver core code. So the set_drvdata(..., NULL) called in remove and error path in probe can be removed. Yang Yingliang (4): mmc: via-sdmmc: remove unnecessary dev_set_drvdata() mmc: block: remove unnecessary dev_set_drvdata() mmc: moxart: remove unnecessary dev_set_drvdata() mmc: sunplus: remove unnecessary platform_set_drvdata() drivers/mmc/core/block.c | 1 - drivers/mmc/host/moxart-mmc.c | 2 -- drivers/mmc/host/sunplus-mmc.c | 1 - drivers/mmc/host/via-sdmmc.c | 2 -- 4 files changed, 6 deletions(-) -- 2.25.1