projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
390a354
)
mfd: stm32-timers: Use devm_platform_get_and_ioremap_resource()
author
Yangtao Li
<frank.li@vivo.com>
Thu, 6 Jul 2023 11:39:38 +0000
(19:39 +0800)
committer
Lee Jones
<lee@kernel.org>
Fri, 18 Aug 2023 20:48:00 +0000
(21:48 +0100)
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>
Link:
https://lore.kernel.org/r/20230706113939.1178-6-frank.li@vivo.com
Signed-off-by: Lee Jones <lee@kernel.org>
drivers/mfd/stm32-timers.c
patch
|
blob
|
history
diff --git
a/drivers/mfd/stm32-timers.c
b/drivers/mfd/stm32-timers.c
index 44ed2fce0319648c94c783ef8533ebd624861860..dc0cd080873661fdb67cd6a38286bf85b2beac84 100644
(file)
--- a/
drivers/mfd/stm32-timers.c
+++ b/
drivers/mfd/stm32-timers.c
@@
-226,8
+226,7
@@
static int stm32_timers_probe(struct platform_device *pdev)
if (!ddata)
return -ENOMEM;
- res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
- mmio = devm_ioremap_resource(dev, res);
+ mmio = devm_platform_get_and_ioremap_resource(pdev, 0, &res);
if (IS_ERR(mmio))
return PTR_ERR(mmio);