diff options
author | Jisheng Zhang <jszhang@marvell.com> | 2016-01-26 18:26:03 +0800 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@linaro.org> | 2016-02-29 11:02:55 +0100 |
commit | d1a13c5ed3b0c5d75aa413195fbd150adfa93cc8 (patch) | |
tree | cd004c5aac711ca237d2f7e332ef58f76d128587 | |
parent | 07255f2816b6a75e40f43a113a76f37721f03674 (diff) | |
download | linux-d1a13c5ed3b0c5d75aa413195fbd150adfa93cc8.tar.gz linux-d1a13c5ed3b0c5d75aa413195fbd150adfa93cc8.tar.bz2 linux-d1a13c5ed3b0c5d75aa413195fbd150adfa93cc8.zip |
mmc: sdhci-iproc: use sdhci_pltfm_unregister directly
The sdhci_iproc_remove() is jsut a wrapper to sdhci_pltfm_unregister.
So use the sdhci_pltfm_unregister() for the .remove hook directly.
Signed-off-by: Jisheng Zhang <jszhang@marvell.com>
Acked-by: Scott Branden <sbranden@broadcom.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
-rw-r--r-- | drivers/mmc/host/sdhci-iproc.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/mmc/host/sdhci-iproc.c b/drivers/mmc/host/sdhci-iproc.c index 871c92c03a77..1110f73b08aa 100644 --- a/drivers/mmc/host/sdhci-iproc.c +++ b/drivers/mmc/host/sdhci-iproc.c @@ -247,11 +247,6 @@ err: return ret; } -static int sdhci_iproc_remove(struct platform_device *pdev) -{ - return sdhci_pltfm_unregister(pdev); -} - static struct platform_driver sdhci_iproc_driver = { .driver = { .name = "sdhci-iproc", @@ -259,7 +254,7 @@ static struct platform_driver sdhci_iproc_driver = { .pm = SDHCI_PLTFM_PMOPS, }, .probe = sdhci_iproc_probe, - .remove = sdhci_iproc_remove, + .remove = sdhci_pltfm_unregister, }; module_platform_driver(sdhci_iproc_driver); |