mmc: omap_hsmmc: remove unnecessary platform_set_drvdata()
Subsystems (2)
PATCH 12/22 mmc: omap_hsmmc: remove unnecessary platform_set_drvdata()
The driver core clears the driver data to NULL after device_release or on probe failure, since commit 0998d0631001288a5974afc0b2a5f568bcdecb4d (device-core: Ensure drvdata = NULL when no driver is bound). Thus, it is not needed to manually clear the device driver data to NULL.
Signed-off-by Jingoo Han <[email protected]>
--- drivers/mmc/host/omap_hsmmc.c | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-)
drivers/mmc/host/omap_hsmmc.c +0 -2
@@ -2034,7 +2034,6 @@ err_irq: } err1:iounmap (host->base); -platform_set_drvdata (pdev,NULL );mmc_free_host (mmc); err_alloc:omap_hsmmc_gpio_free (pdata);
@@ -2080,7 +2079,6 @@ static int omap_hsmmc_remove(struct platform_device *pdev) res =platform_get_resource (pdev,IORESOURCE_MEM ,0 );if (res)release_mem_region (res->start,resource_size (res)); -platform_set_drvdata (pdev,NULL );return 0 ; }
Signature · 1 line
1.7.2.5