* [PATCH] soc/tegra: flowctrl: Use devm_platform_get_and_ioremap_resource()
@ 2023-02-15 9:18 ye.xingchen
2023-04-05 12:59 ` Thierry Reding
0 siblings, 1 reply; 2+ messages in thread
From: ye.xingchen @ 2023-02-15 9:18 UTC (permalink / raw)
To: thierry.reding; +Cc: jonathanh, linux-tegra, linux-kernel
From: Ye Xingchen <ye.xingchen@zte.com.cn>
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: Ye Xingchen <ye.xingchen@zte.com.cn>
---
drivers/soc/tegra/flowctrl.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/soc/tegra/flowctrl.c b/drivers/soc/tegra/flowctrl.c
index 5db919d96aba..221202db3313 100644
--- a/drivers/soc/tegra/flowctrl.c
+++ b/drivers/soc/tegra/flowctrl.c
@@ -156,10 +156,8 @@ void flowctrl_cpu_suspend_exit(unsigned int cpuid)
static int tegra_flowctrl_probe(struct platform_device *pdev)
{
void __iomem *base = tegra_flowctrl_base;
- struct resource *res;
- res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
- tegra_flowctrl_base = devm_ioremap_resource(&pdev->dev, res);
+ tegra_flowctrl_base = devm_platform_get_and_ioremap_resource(pdev, 0, NULL);
if (IS_ERR(tegra_flowctrl_base))
return PTR_ERR(tegra_flowctrl_base);
--
2.25.1
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH] soc/tegra: flowctrl: Use devm_platform_get_and_ioremap_resource()
2023-02-15 9:18 [PATCH] soc/tegra: flowctrl: Use devm_platform_get_and_ioremap_resource() ye.xingchen
@ 2023-04-05 12:59 ` Thierry Reding
0 siblings, 0 replies; 2+ messages in thread
From: Thierry Reding @ 2023-04-05 12:59 UTC (permalink / raw)
To: ye.xingchen; +Cc: jonathanh, linux-tegra, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 485 bytes --]
On Wed, Feb 15, 2023 at 05:18:03PM +0800, ye.xingchen@zte.com.cn wrote:
> From: Ye Xingchen <ye.xingchen@zte.com.cn>
>
> 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: Ye Xingchen <ye.xingchen@zte.com.cn>
> ---
> drivers/soc/tegra/flowctrl.c | 4 +---
> 1 file changed, 1 insertion(+), 3 deletions(-)
Applied, thanks.
Thierry
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-04-05 13:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-15 9:18 [PATCH] soc/tegra: flowctrl: Use devm_platform_get_and_ioremap_resource() ye.xingchen
2023-04-05 12:59 ` Thierry Reding
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox