@@ -1021,7 +1021,7 @@ int tmio_mmc_host_probe(struct tmio_mmc_host *host)
if (ret < 0)
goto host_free;
- host->ctl = ioremap(res_ctl->start, resource_size(res_ctl));
+ host->ctl = devm_ioremap(dev, res_ctl->start, resource_size(res_ctl));
if (!host->ctl) {
ret = -ENOMEM;
goto host_free;
@@ -1119,7 +1119,6 @@ int tmio_mmc_host_probe(struct tmio_mmc_host *host)
pm_disable:
pm_runtime_disable(dev);
- iounmap(host->ctl);
host_free:
mmc_free_host(mmc);
@@ -1145,7 +1144,6 @@ void tmio_mmc_host_remove(struct tmio_mmc_host *host)
pm_runtime_put_sync(&pdev->dev);
pm_runtime_disable(&pdev->dev);
- iounmap(host->ctl);
mmc_free_host(mmc);
}
EXPORT_SYMBOL(tmio_mmc_host_remove);