All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] bus: vexpress-config: use devm_platform_get_and_ioremap_resource()
@ 2023-02-08  7:38 ` ye.xingchen
  0 siblings, 0 replies; 4+ messages in thread
From: ye.xingchen @ 2023-02-08  7:38 UTC (permalink / raw)
  To: liviu.dudau; +Cc: sudeep.holla, lpieralisi, linux-kernel, linux-arm-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/bus/vexpress-config.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/drivers/bus/vexpress-config.c b/drivers/bus/vexpress-config.c
index a58ac0c8e282..a03c9e32a665 100644
--- a/drivers/bus/vexpress-config.c
+++ b/drivers/bus/vexpress-config.c
@@ -350,7 +350,6 @@ static struct vexpress_config_bridge_ops vexpress_syscfg_bridge_ops = {
 static int vexpress_syscfg_probe(struct platform_device *pdev)
 {
 	struct vexpress_syscfg *syscfg;
-	struct resource *res;
 	struct vexpress_config_bridge *bridge;
 	struct device_node *node;
 	int master;
@@ -362,8 +361,7 @@ static int vexpress_syscfg_probe(struct platform_device *pdev)
 	syscfg->dev = &pdev->dev;
 	INIT_LIST_HEAD(&syscfg->funcs);

-	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
-	syscfg->base = devm_ioremap_resource(&pdev->dev, res);
+	syscfg->base = devm_platform_get_and_ioremap_resource(pdev, 0, NULL);
 	if (IS_ERR(syscfg->base))
 		return PTR_ERR(syscfg->base);

-- 
2.25.1

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH] bus: vexpress-config: use devm_platform_get_and_ioremap_resource()
@ 2023-02-08  7:38 ` ye.xingchen
  0 siblings, 0 replies; 4+ messages in thread
From: ye.xingchen @ 2023-02-08  7:38 UTC (permalink / raw)
  To: liviu.dudau; +Cc: sudeep.holla, lpieralisi, linux-kernel, linux-arm-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/bus/vexpress-config.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/drivers/bus/vexpress-config.c b/drivers/bus/vexpress-config.c
index a58ac0c8e282..a03c9e32a665 100644
--- a/drivers/bus/vexpress-config.c
+++ b/drivers/bus/vexpress-config.c
@@ -350,7 +350,6 @@ static struct vexpress_config_bridge_ops vexpress_syscfg_bridge_ops = {
 static int vexpress_syscfg_probe(struct platform_device *pdev)
 {
 	struct vexpress_syscfg *syscfg;
-	struct resource *res;
 	struct vexpress_config_bridge *bridge;
 	struct device_node *node;
 	int master;
@@ -362,8 +361,7 @@ static int vexpress_syscfg_probe(struct platform_device *pdev)
 	syscfg->dev = &pdev->dev;
 	INIT_LIST_HEAD(&syscfg->funcs);

-	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
-	syscfg->base = devm_ioremap_resource(&pdev->dev, res);
+	syscfg->base = devm_platform_get_and_ioremap_resource(pdev, 0, NULL);
 	if (IS_ERR(syscfg->base))
 		return PTR_ERR(syscfg->base);

-- 
2.25.1

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] bus: vexpress-config: use devm_platform_get_and_ioremap_resource()
  2023-02-08  7:38 ` ye.xingchen
@ 2023-02-08 11:59   ` Sudeep Holla
  -1 siblings, 0 replies; 4+ messages in thread
From: Sudeep Holla @ 2023-02-08 11:59 UTC (permalink / raw)
  To: ye.xingchen
  Cc: liviu.dudau, lpieralisi, Sudeep Holla, linux-kernel, linux-arm-kernel

On Wed, Feb 08, 2023 at 03:38:54PM +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.
>

LGTM,

Acked-by: Sudeep Holla <sudeep.holla@arm.com>

Not sure if you plan to take all such changes together or you want individual
patches to be picked up by respective maintainers, let me know.

-- 
Regards,
Sudeep

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] bus: vexpress-config: use devm_platform_get_and_ioremap_resource()
@ 2023-02-08 11:59   ` Sudeep Holla
  0 siblings, 0 replies; 4+ messages in thread
From: Sudeep Holla @ 2023-02-08 11:59 UTC (permalink / raw)
  To: ye.xingchen
  Cc: liviu.dudau, lpieralisi, Sudeep Holla, linux-kernel, linux-arm-kernel

On Wed, Feb 08, 2023 at 03:38:54PM +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.
>

LGTM,

Acked-by: Sudeep Holla <sudeep.holla@arm.com>

Not sure if you plan to take all such changes together or you want individual
patches to be picked up by respective maintainers, let me know.

-- 
Regards,
Sudeep

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-02-08 12:01 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-08  7:38 [PATCH] bus: vexpress-config: use devm_platform_get_and_ioremap_resource() ye.xingchen
2023-02-08  7:38 ` ye.xingchen
2023-02-08 11:59 ` Sudeep Holla
2023-02-08 11:59   ` Sudeep Holla

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.