diff options
author | Kevin Hao <haokexin@gmail.com> | 2015-02-27 02:47:31 -0500 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@linaro.org> | 2015-03-23 09:13:35 -0400 |
commit | caebcae94fc01aef409ea0cabf0c327b6c23840e (patch) | |
tree | 45db370019df801833f0bd6e2d6b0271b289d8a7 /drivers/mmc/host/sdhci-dove.c | |
parent | 83eacdfa2529b4ee97fe16a3a3a41d1b03465e13 (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-dove.c')
-rw-r--r-- | drivers/mmc/host/sdhci-dove.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/mmc/host/sdhci-dove.c b/drivers/mmc/host/sdhci-dove.c index 2314ff88d942..407c21f152b2 100644 --- a/drivers/mmc/host/sdhci-dove.c +++ b/drivers/mmc/host/sdhci-dove.c | |||
@@ -108,11 +108,6 @@ err_sdhci_add: | |||
108 | return ret; | 108 | return ret; |
109 | } | 109 | } |
110 | 110 | ||
111 | static int sdhci_dove_remove(struct platform_device *pdev) | ||
112 | { | ||
113 | return sdhci_pltfm_unregister(pdev); | ||
114 | } | ||
115 | |||
116 | static const struct of_device_id sdhci_dove_of_match_table[] = { | 111 | static const struct of_device_id sdhci_dove_of_match_table[] = { |
117 | { .compatible = "marvell,dove-sdhci", }, | 112 | { .compatible = "marvell,dove-sdhci", }, |
118 | {} | 113 | {} |
@@ -126,7 +121,7 @@ static struct platform_driver sdhci_dove_driver = { | |||
126 | .of_match_table = sdhci_dove_of_match_table, | 121 | .of_match_table = sdhci_dove_of_match_table, |
127 | }, | 122 | }, |
128 | .probe = sdhci_dove_probe, | 123 | .probe = sdhci_dove_probe, |
129 | .remove = sdhci_dove_remove, | 124 | .remove = sdhci_pltfm_unregister, |
130 | }; | 125 | }; |
131 | 126 | ||
132 | module_platform_driver(sdhci_dove_driver); | 127 | module_platform_driver(sdhci_dove_driver); |