diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2016-04-20 11:16:28 +0900 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@linaro.org> | 2016-05-02 10:33:33 +0200 |
commit | 6113d8123624210fbc9412a1959d230fbd6ccf0d (patch) | |
tree | 06ddb016b4823a4c2be4b3e307055b3cc364e24a /drivers/mmc | |
parent | e95f644d8b112647a8da5314e5e93b59ac8d3f08 (diff) | |
download | linux-rpi3-6113d8123624210fbc9412a1959d230fbd6ccf0d.tar.gz linux-rpi3-6113d8123624210fbc9412a1959d230fbd6ccf0d.tar.bz2 linux-rpi3-6113d8123624210fbc9412a1959d230fbd6ccf0d.zip |
mmc: sdhci-pltfm: use devm_ioremap()
Use the managed variant of ioremap().
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/mmc')
-rw-r--r-- | drivers/mmc/host/sdhci-pltfm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mmc/host/sdhci-pltfm.c b/drivers/mmc/host/sdhci-pltfm.c index 8527a7cfd486..52132875a457 100644 --- a/drivers/mmc/host/sdhci-pltfm.c +++ b/drivers/mmc/host/sdhci-pltfm.c @@ -160,7 +160,8 @@ struct sdhci_host *sdhci_pltfm_init(struct platform_device *pdev, goto err_request; } - host->ioaddr = ioremap(iomem->start, resource_size(iomem)); + host->ioaddr = devm_ioremap(&pdev->dev, iomem->start, + resource_size(iomem)); if (!host->ioaddr) { dev_err(&pdev->dev, "failed to remap registers\n"); ret = -ENOMEM; @@ -190,7 +191,6 @@ void sdhci_pltfm_free(struct platform_device *pdev) { struct sdhci_host *host = platform_get_drvdata(pdev); - iounmap(host->ioaddr); sdhci_free_host(host); } EXPORT_SYMBOL_GPL(sdhci_pltfm_free); |