projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e95f644
)
mmc: sdhci-pltfm: use devm_ioremap()
author
Masahiro Yamada
<
[email protected]
>
Wed, 20 Apr 2016 02:16:28 +0000
(11:16 +0900)
committer
Ulf Hansson
<
[email protected]
>
Mon, 2 May 2016 08:33:33 +0000
(10:33 +0200)
Use the managed variant of ioremap().
Signed-off-by: Masahiro Yamada <
[email protected]
>
Acked-by: Adrian Hunter <
[email protected]
>
Signed-off-by: Ulf Hansson <
[email protected]
>
drivers/mmc/host/sdhci-pltfm.c
patch
|
blob
|
history
diff --git
a/drivers/mmc/host/sdhci-pltfm.c
b/drivers/mmc/host/sdhci-pltfm.c
index 8527a7cfd486492c668b128a4194a2a41565831f..52132875a4571c86110513e3f374b4a30bb5dc6e 100644
(file)
--- 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);