[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <163475563474.25758.12905440311379570952.tip-bot2@tip-bot2>
Date: Wed, 20 Oct 2021 18:47:14 -0000
From: "irqchip-bot for Cai Huoqing" <tip-bot2@...utronix.de>
To: linux-kernel@...r.kernel.org
Cc: Cai Huoqing <caihuoqing@...du.com>, Andrew Lunn <andrew@...n.ch>,
Marc Zyngier <maz@...nel.org>, tglx@...utronix.de
Subject: [irqchip: irq/irqchip-next] irqchip/irq-mvebu-pic: Make use of the
helper function devm_platform_ioremap_resource()
The following commit has been merged into the irq/irqchip-next branch of irqchip:
Commit-ID: bacdbd710de553c9c998235231139f0921a5750c
Gitweb: https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms/bacdbd710de553c9c998235231139f0921a5750c
Author: Cai Huoqing <caihuoqing@...du.com>
AuthorDate: Wed, 08 Sep 2021 18:57:00 +08:00
Committer: Marc Zyngier <maz@...nel.org>
CommitterDate: Tue, 19 Oct 2021 11:22:59 +01:00
irqchip/irq-mvebu-pic: Make use of the helper function devm_platform_ioremap_resource()
Use the devm_platform_ioremap_resource() helper instead of
calling platform_get_resource() and devm_ioremap_resource()
separately
Signed-off-by: Cai Huoqing <caihuoqing@...du.com>
Reviewed-by: Andrew Lunn <andrew@...n.ch>
Signed-off-by: Marc Zyngier <maz@...nel.org>
Link: https://lore.kernel.org/r/20210908105701.1678-1-caihuoqing@baidu.com
---
drivers/irqchip/irq-mvebu-pic.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/irqchip/irq-mvebu-pic.c b/drivers/irqchip/irq-mvebu-pic.c
index dc1cee4..870f986 100644
--- a/drivers/irqchip/irq-mvebu-pic.c
+++ b/drivers/irqchip/irq-mvebu-pic.c
@@ -121,14 +121,12 @@ static int mvebu_pic_probe(struct platform_device *pdev)
struct device_node *node = pdev->dev.of_node;
struct mvebu_pic *pic;
struct irq_chip *irq_chip;
- struct resource *res;
pic = devm_kzalloc(&pdev->dev, sizeof(struct mvebu_pic), GFP_KERNEL);
if (!pic)
return -ENOMEM;
- res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
- pic->base = devm_ioremap_resource(&pdev->dev, res);
+ pic->base = devm_platform_ioremap_resource(pdev, 0);
if (IS_ERR(pic->base))
return PTR_ERR(pic->base);
Powered by blists - more mailing lists