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-sirf.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-sirf.c')
-rw-r--r-- | drivers/mmc/host/sdhci-sirf.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/drivers/mmc/host/sdhci-sirf.c b/drivers/mmc/host/sdhci-sirf.c index f3c8d8d9fc62..32848eb7ad80 100644 --- a/drivers/mmc/host/sdhci-sirf.c +++ b/drivers/mmc/host/sdhci-sirf.c | |||
@@ -193,13 +193,6 @@ err_clk_prepare: | |||
193 | return ret; | 193 | return ret; |
194 | } | 194 | } |
195 | 195 | ||
196 | static int sdhci_sirf_remove(struct platform_device *pdev) | ||
197 | { | ||
198 | struct sdhci_host *host = platform_get_drvdata(pdev); | ||
199 | |||
200 | return sdhci_pltfm_unregister(pdev); | ||
201 | } | ||
202 | |||
203 | #ifdef CONFIG_PM_SLEEP | 196 | #ifdef CONFIG_PM_SLEEP |
204 | static int sdhci_sirf_suspend(struct device *dev) | 197 | static int sdhci_sirf_suspend(struct device *dev) |
205 | { | 198 | { |
@@ -249,7 +242,7 @@ static struct platform_driver sdhci_sirf_driver = { | |||
249 | #endif | 242 | #endif |
250 | }, | 243 | }, |
251 | .probe = sdhci_sirf_probe, | 244 | .probe = sdhci_sirf_probe, |
252 | .remove = sdhci_sirf_remove, | 245 | .remove = sdhci_pltfm_unregister, |
253 | }; | 246 | }; |
254 | 247 | ||
255 | module_platform_driver(sdhci_sirf_driver); | 248 | module_platform_driver(sdhci_sirf_driver); |