summaryrefslogtreecommitdiffstats
path: root/drivers/mmc/host/jz4740_mmc.c
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2013-05-06 15:05:21 +0900
committerChris Ball <cjb@laptop.org>2013-05-26 14:23:23 -0400
commit113a87f868b2f2e086790a68e8b9e41d8f0c3295 (patch)
tree1481c2f7d8e8cc38248c84017dc12cd0f1fc0b1a /drivers/mmc/host/jz4740_mmc.c
parentad82ab65d8abd060b60d99b8559da99c31515a31 (diff)
downloadlinux-stable-113a87f868b2f2e086790a68e8b9e41d8f0c3295.tar.gz
linux-stable-113a87f868b2f2e086790a68e8b9e41d8f0c3295.tar.bz2
linux-stable-113a87f868b2f2e086790a68e8b9e41d8f0c3295.zip
mmc: 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 <jg1.han@samsung.com> Acked-by: Sonic Zhang <sonic.zhang@analog.com> Acked-by: Seungwon Jeon <tgih.jun@samsung.com> Acked-by: Shawn Guo <shawn.guo@linaro.org> Acked-by: Adrian Hunter <adrian.hunter@intel.com> Acked-by: Haojian Zhuang <haojian.zhuang@gmail.com> Acked-by: Jaehoon Chung <jh80.chung@samsung.com> Acked-by: Viresh Kumar <viresh.kumar@linaro.org> Acked-by: Tony Prisk <linux@prisktech.co.nz> Signed-off-by: Chris Ball <cjb@laptop.org>
Diffstat (limited to 'drivers/mmc/host/jz4740_mmc.c')
-rw-r--r--drivers/mmc/host/jz4740_mmc.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/mmc/host/jz4740_mmc.c b/drivers/mmc/host/jz4740_mmc.c
index 2391c6b7a4bb..1c47b3473ce3 100644
--- a/drivers/mmc/host/jz4740_mmc.c
+++ b/drivers/mmc/host/jz4740_mmc.c
@@ -932,7 +932,6 @@ err_release_mem_region:
err_clk_put:
clk_put(host->clk);
err_free_host:
- platform_set_drvdata(pdev, NULL);
mmc_free_host(mmc);
return ret;
@@ -960,7 +959,6 @@ static int jz4740_mmc_remove(struct platform_device *pdev)
clk_put(host->clk);
- platform_set_drvdata(pdev, NULL);
mmc_free_host(host->mmc);
return 0;