projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4eef841
)
mtd: rawnand: omap2: Use devm_platform_get_and_ioremap_resource()
author
Yangtao Li
<frank.li@vivo.com>
Fri, 7 Jul 2023 04:06:09 +0000
(12:06 +0800)
committer
Miquel Raynal
<miquel.raynal@bootlin.com>
Wed, 12 Jul 2023 12:07:49 +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-5-frank.li@vivo.com
drivers/mtd/nand/raw/omap2.c
patch
|
blob
|
history
diff --git
a/drivers/mtd/nand/raw/omap2.c
b/drivers/mtd/nand/raw/omap2.c
index db22b3af16d8a93e70655225b53334b99d476300..277d16f1e0bb27cc2bcb08d78e59fe7ed865c70d 100644
(file)
--- a/
drivers/mtd/nand/raw/omap2.c
+++ b/
drivers/mtd/nand/raw/omap2.c
@@
-2219,8
+2219,7
@@
static int omap_nand_probe(struct platform_device *pdev)
}
}
- res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
- vaddr = devm_ioremap_resource(&pdev->dev, res);
+ vaddr = devm_platform_get_and_ioremap_resource(pdev, 0, &res);
if (IS_ERR(vaddr))
return PTR_ERR(vaddr);