From: "irqchip-bot for Cai Huoqing" <tip-bot2@linutronix.de>
To: linux-kernel@vger.kernel.org
Cc: Cai Huoqing <caihuoqing@baidu.com>, Andrew Lunn <andrew@lunn.ch>,
Marc Zyngier <maz@kernel.org>,
tglx@linutronix.de
Subject: [irqchip: irq/irqchip-next] irqchip/irq-mvebu-icu: Make use of the helper function devm_platform_ioremap_resource()
Date: Wed, 20 Oct 2021 18:47:15 -0000 [thread overview]
Message-ID: <163475563540.25758.2588530833263075881.tip-bot2@tip-bot2> (raw)
In-Reply-To: <20210908105653.1627-1-caihuoqing@baidu.com>
The following commit has been merged into the irq/irqchip-next branch of irqchip:
Commit-ID: 0c1479a66359c6955cd973c9e225d7ee5d6c71aa
Gitweb: https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms/0c1479a66359c6955cd973c9e225d7ee5d6c71aa
Author: Cai Huoqing <caihuoqing@baidu.com>
AuthorDate: Wed, 08 Sep 2021 18:56:52 +08:00
Committer: Marc Zyngier <maz@kernel.org>
CommitterDate: Tue, 19 Oct 2021 11:22:34 +01:00
irqchip/irq-mvebu-icu: 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@baidu.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20210908105653.1627-1-caihuoqing@baidu.com
---
drivers/irqchip/irq-mvebu-icu.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/irqchip/irq-mvebu-icu.c b/drivers/irqchip/irq-mvebu-icu.c
index 090bc3f..3e7297f 100644
--- a/drivers/irqchip/irq-mvebu-icu.c
+++ b/drivers/irqchip/irq-mvebu-icu.c
@@ -347,7 +347,6 @@ builtin_platform_driver(mvebu_icu_subset_driver);
static int mvebu_icu_probe(struct platform_device *pdev)
{
struct mvebu_icu *icu;
- struct resource *res;
int i;
icu = devm_kzalloc(&pdev->dev, sizeof(struct mvebu_icu),
@@ -357,8 +356,7 @@ static int mvebu_icu_probe(struct platform_device *pdev)
icu->dev = &pdev->dev;
- res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
- icu->base = devm_ioremap_resource(&pdev->dev, res);
+ icu->base = devm_platform_ioremap_resource(pdev, 0);
if (IS_ERR(icu->base))
return PTR_ERR(icu->base);
prev parent reply other threads:[~2021-10-20 18:47 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-09-08 10:56 [PATCH] " Cai Huoqing
2021-09-08 12:24 ` Andrew Lunn
2021-10-20 18:47 ` irqchip-bot for Cai Huoqing [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=163475563540.25758.2588530833263075881.tip-bot2@tip-bot2 \
--to=tip-bot2@linutronix.de \
--cc=andrew@lunn.ch \
--cc=caihuoqing@baidu.com \
--cc=linux-kernel@vger.kernel.org \
--cc=maz@kernel.org \
--cc=tglx@linutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®