projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0a337eb
)
mmc: mtk-sd: convert to devm_platform_ioremap_resource
author
Yangtao Li
<tiny.windzz@gmail.com>
Sun, 15 Dec 2019 17:51:19 +0000
(17:51 +0000)
committer
Ulf Hansson
<ulf.hansson@linaro.org>
Wed, 18 Dec 2019 13:55:11 +0000
(14:55 +0100)
Use devm_platform_ioremap_resource() to simplify code.
Signed-off-by: Yangtao Li <tiny.windzz@gmail.com>
Link:
https://lore.kernel.org/r/20191215175120.3290-12-tiny.windzz@gmail.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/mtk-sd.c
patch
|
blob
|
history
diff --git
a/drivers/mmc/host/mtk-sd.c
b/drivers/mmc/host/mtk-sd.c
index
010fe29
..
7726dcf
100644
(file)
--- a/
drivers/mmc/host/mtk-sd.c
+++ b/
drivers/mmc/host/mtk-sd.c
@@
-2194,8
+2194,7
@@
static int msdc_drv_probe(struct platform_device *pdev)
if (ret)
goto host_free;
- res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
- host->base = devm_ioremap_resource(&pdev->dev, res);
+ host->base = devm_platform_ioremap_resource(pdev, 0);
if (IS_ERR(host->base)) {
ret = PTR_ERR(host->base);
goto host_free;