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>
This commit is contained in:
Kevin Hao
2015-02-27 15:47:31 +08:00
committed by Ulf Hansson
orang tua 83eacdfa25
melakukan caebcae94f
9 mengubah file dengan 9 tambahan dan 56 penghapusan

Melihat File

@@ -321,11 +321,6 @@ err_alloc_tegra_host:
return rc;
}
static int sdhci_tegra_remove(struct platform_device *pdev)
{
return sdhci_pltfm_unregister(pdev);
}
static struct platform_driver sdhci_tegra_driver = {
.driver = {
.name = "sdhci-tegra",
@@ -333,7 +328,7 @@ static struct platform_driver sdhci_tegra_driver = {
.pm = SDHCI_PLTFM_PMOPS,
},
.probe = sdhci_tegra_probe,
.remove = sdhci_tegra_remove,
.remove = sdhci_pltfm_unregister,
};
module_platform_driver(sdhci_tegra_driver);