提交 d1a13c5e 编写于 作者: J Jisheng Zhang 提交者: Ulf Hansson

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: NJisheng Zhang <jszhang@marvell.com>
Acked-by: NScott Branden <sbranden@broadcom.com>
Signed-off-by: NUlf Hansson <ulf.hansson@linaro.org>
上级 07255f28
......@@ -247,11 +247,6 @@ static int sdhci_iproc_probe(struct platform_device *pdev)
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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册