aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mmc/host/sdhci-tegra.c
diff options
context:
space:
mode:
authorKevin Hao <haokexin@gmail.com>2015-02-27 02:47:31 -0500
committerUlf Hansson <ulf.hansson@linaro.org>2015-03-23 09:13:35 -0400
commitcaebcae94fc01aef409ea0cabf0c327b6c23840e (patch)
tree45db370019df801833f0bd6e2d6b0271b289d8a7 /drivers/mmc/host/sdhci-tegra.c
parent83eacdfa2529b4ee97fe16a3a3a41d1b03465e13 (diff)
mmc: sdhci: set the .remove to sdhci_pltfm_unregister()
In these drivers, the driver specific .remove function just a simple wrapper of function sdhci_pltfm_unregister(). So remove these wrappers and just set .remove to sdhci_pltfm_unregister(). Signed-off-by: Kevin Hao <haokexin@gmail.com> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/mmc/host/sdhci-tegra.c')
-rw-r--r--drivers/mmc/host/sdhci-tegra.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/mmc/host/sdhci-tegra.c b/drivers/mmc/host/sdhci-tegra.c
index 12881e05ff30..2489bb753708 100644
--- a/drivers/mmc/host/sdhci-tegra.c
+++ b/drivers/mmc/host/sdhci-tegra.c
@@ -321,11 +321,6 @@ err_alloc_tegra_host:
321 return rc; 321 return rc;
322} 322}
323 323
324static int sdhci_tegra_remove(struct platform_device *pdev)
325{
326 return sdhci_pltfm_unregister(pdev);
327}
328
329static struct platform_driver sdhci_tegra_driver = { 324static struct platform_driver sdhci_tegra_driver = {
330 .driver = { 325 .driver = {
331 .name = "sdhci-tegra", 326 .name = "sdhci-tegra",
@@ -333,7 +328,7 @@ static struct platform_driver sdhci_tegra_driver = {
333 .pm = SDHCI_PLTFM_PMOPS, 328 .pm = SDHCI_PLTFM_PMOPS,
334 }, 329 },
335 .probe = sdhci_tegra_probe, 330 .probe = sdhci_tegra_probe,
336 .remove = sdhci_tegra_remove, 331 .remove = sdhci_pltfm_unregister,
337}; 332};
338 333
339module_platform_driver(sdhci_tegra_driver); 334module_platform_driver(sdhci_tegra_driver);