mmc: sdhci-iproc: use sdhci_pltfm_unregister directly
authorJisheng Zhang <jszhang@marvell.com>
Tue, 26 Jan 2016 10:26:03 +0000 (18:26 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 29 Feb 2016 10:02:55 +0000 (11:02 +0100)
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>
drivers/mmc/host/sdhci-iproc.c

index 871c92c..1110f73 100644 (file)
@@ -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);