* [PATCH -next] PCI: rcar-gen2: Use devm_platform_get_and_ioremap_resource()
@ 2023-03-23 9:16 Yang Li
2023-04-20 14:27 ` Geert Uytterhoeven
2023-06-26 11:02 ` Krzysztof Wilczyński
0 siblings, 2 replies; 3+ messages in thread
From: Yang Li @ 2023-03-23 9:16 UTC (permalink / raw)
To: marek.vasut+renesas
Cc: yoshihiro.shimoda.uh, lpieralisi, kw, robh, bhelgaas, linux-pci,
linux-renesas-soc, linux-kernel, Yang Li
According to commit 890cc39a8799 ("drivers: provide
devm_platform_get_and_ioremap_resource()"), 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: Yang Li <yang.lee@linux.alibaba.com>
---
drivers/pci/controller/pci-rcar-gen2.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/pci/controller/pci-rcar-gen2.c b/drivers/pci/controller/pci-rcar-gen2.c
index 839695791757..d29866485361 100644
--- a/drivers/pci/controller/pci-rcar-gen2.c
+++ b/drivers/pci/controller/pci-rcar-gen2.c
@@ -290,8 +290,7 @@ static int rcar_pci_probe(struct platform_device *pdev)
priv = pci_host_bridge_priv(bridge);
bridge->sysdata = priv;
- cfg_res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
- reg = devm_ioremap_resource(dev, cfg_res);
+ reg = devm_platform_get_and_ioremap_resource(pdev, 0, &cfg_res);
if (IS_ERR(reg))
return PTR_ERR(reg);
--
2.20.1.7.g153144c
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH -next] PCI: rcar-gen2: Use devm_platform_get_and_ioremap_resource()
2023-03-23 9:16 [PATCH -next] PCI: rcar-gen2: Use devm_platform_get_and_ioremap_resource() Yang Li
@ 2023-04-20 14:27 ` Geert Uytterhoeven
2023-06-26 11:02 ` Krzysztof Wilczyński
1 sibling, 0 replies; 3+ messages in thread
From: Geert Uytterhoeven @ 2023-04-20 14:27 UTC (permalink / raw)
To: Yang Li
Cc: marek.vasut+renesas, yoshihiro.shimoda.uh, lpieralisi, kw, robh,
bhelgaas, linux-pci, linux-renesas-soc, linux-kernel
On Thu, Mar 23, 2023 at 10:24 AM Yang Li <yang.lee@linux.alibaba.com> wrote:
> According to commit 890cc39a8799 ("drivers: provide
> devm_platform_get_and_ioremap_resource()"), 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: Yang Li <yang.lee@linux.alibaba.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH -next] PCI: rcar-gen2: Use devm_platform_get_and_ioremap_resource()
2023-03-23 9:16 [PATCH -next] PCI: rcar-gen2: Use devm_platform_get_and_ioremap_resource() Yang Li
2023-04-20 14:27 ` Geert Uytterhoeven
@ 2023-06-26 11:02 ` Krzysztof Wilczyński
1 sibling, 0 replies; 3+ messages in thread
From: Krzysztof Wilczyński @ 2023-06-26 11:02 UTC (permalink / raw)
To: Yang Li
Cc: marek.vasut+renesas, yoshihiro.shimoda.uh, lpieralisi, robh,
bhelgaas, linux-pci, linux-renesas-soc, linux-kernel
Hello,
> According to commit 890cc39a8799 ("drivers: provide
> devm_platform_get_and_ioremap_resource()"), 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.
I took each separate patch:
https://lore.kernel.org/linux-pci/20230323091644.91981-1-yang.lee@linux.alibaba.com
https://lore.kernel.org/linux-pci/20230323090431.73526-1-yang.lee@linux.alibaba.com
https://lore.kernel.org/linux-pci/20230323090011.66754-1-yang.lee@linux.alibaba.com
https://lore.kernel.org/linux-pci/20230323074553.90372-1-yang.lee@linux.alibaba.com
Turned into a series and applied against a single branch.
Applied to controller/resources, thank you!
[01/04] PCI: rcar-gen2: Use devm_platform_get_and_ioremap_resource()
https://git.kernel.org/pci/pci/c/8b88299ef429
[02/04] PCI: v3: Use devm_platform_get_and_ioremap_resource()
https://git.kernel.org/pci/pci/c/cc456373aa57
[03/04] PCI: xgene-msi: Use devm_platform_get_and_ioremap_resource()
https://git.kernel.org/pci/pci/c/7a081062046f
[04/04] PCI: imx6: Use devm_platform_get_and_ioremap_resource()
https://git.kernel.org/pci/pci/c/860955d0db7d
Krzysztof
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-06-26 11:02 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-23 9:16 [PATCH -next] PCI: rcar-gen2: Use devm_platform_get_and_ioremap_resource() Yang Li
2023-04-20 14:27 ` Geert Uytterhoeven
2023-06-26 11:02 ` Krzysztof Wilczyński
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).