summaryrefslogtreecommitdiffstats
path: root/drivers/mmc/host/sdhci-st.c
diff options
context:
space:
mode:
authorKevin Hao <haokexin@gmail.com>2015-02-27 15:47:31 +0800
committerUlf Hansson <ulf.hansson@linaro.org>2015-03-23 14:13:35 +0100
commitcaebcae94fc01aef409ea0cabf0c327b6c23840e (patch)
tree45db370019df801833f0bd6e2d6b0271b289d8a7 /drivers/mmc/host/sdhci-st.c
parent83eacdfa2529b4ee97fe16a3a3a41d1b03465e13 (diff)
downloadop-kernel-dev-caebcae94fc01aef409ea0cabf0c327b6c23840e.zip
op-kernel-dev-caebcae94fc01aef409ea0cabf0c327b6c23840e.tar.gz
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-st.c')
-rw-r--r--drivers/mmc/host/sdhci-st.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/mmc/host/sdhci-st.c b/drivers/mmc/host/sdhci-st.c
index 0019df4..594a4ef 100644
--- a/drivers/mmc/host/sdhci-st.c
+++ b/drivers/mmc/host/sdhci-st.c
@@ -113,11 +113,6 @@ err_of:
return ret;
}
-static int sdhci_st_remove(struct platform_device *pdev)
-{
- return sdhci_pltfm_unregister(pdev);
-}
-
#ifdef CONFIG_PM_SLEEP
static int sdhci_st_suspend(struct device *dev)
{
@@ -155,7 +150,7 @@ MODULE_DEVICE_TABLE(of, st_sdhci_match);
static struct platform_driver sdhci_st_driver = {
.probe = sdhci_st_probe,
- .remove = sdhci_st_remove,
+ .remove = sdhci_pltfm_unregister,
.driver = {
.name = "sdhci-st",
.pm = &sdhci_st_pmops,
OpenPOWER on IntegriCloud