projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9cd9dda
)
mtd: rawnand: fsl_upm: Use devm_platform_get_and_ioremap_resource()
author
Yangtao Li
<frank.li@vivo.com>
Fri, 7 Jul 2023 04:06:12 +0000
(12:06 +0800)
committer
Miquel Raynal
<miquel.raynal@bootlin.com>
Wed, 12 Jul 2023 12:07:54 +0000
(14:07 +0200)
Convert platform_get_resource(), devm_ioremap_resource() to a single
call to devm_platform_get_and_ioremap_resource(), as this is exactly
what this function does.
Signed-off-by: Yangtao Li <frank.li@vivo.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link:
https://lore.kernel.org/linux-mtd/20230707040622.78174-8-frank.li@vivo.com
drivers/mtd/nand/raw/fsl_upm.c
patch
|
blob
|
history
diff --git
a/drivers/mtd/nand/raw/fsl_upm.c
b/drivers/mtd/nand/raw/fsl_upm.c
index 086426139173f39d832f3bca00ff475eb6106c8e..f1810e2f2c07d73a6f5c16571b76c6237ecbd8be 100644
(file)
--- a/
drivers/mtd/nand/raw/fsl_upm.c
+++ b/
drivers/mtd/nand/raw/fsl_upm.c
@@
-172,8
+172,7
@@
static int fun_probe(struct platform_device *ofdev)
if (!fun)
return -ENOMEM;
- io_res = platform_get_resource(ofdev, IORESOURCE_MEM, 0);
- fun->io_base = devm_ioremap_resource(&ofdev->dev, io_res);
+ fun->io_base = devm_platform_get_and_ioremap_resource(ofdev, 0, &io_res);
if (IS_ERR(fun->io_base))
return PTR_ERR(fun->io_base);