mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "irqchip-bot for Yangtao Li" <tip-bot2@linutronix.de>
To: linux-kernel@vger.kernel.org
Cc: Yangtao Li <frank.li@vivo.com>, Marc Zyngier <maz@kernel.org>,
	tglx@linutronix.de
Subject: [irqchip: irq/irqchip-next] irqchip/ls-scfg-msi: Use devm_platform_get_and_ioremap_resource()
Date: Mon, 21 Aug 2023 16:58:03 -0000	[thread overview]
Message-ID: <169263708370.27769.167151814933190878.tip-bot2@tip-bot2> (raw)
In-Reply-To: <20230704100253.36045-1-frank.li@vivo.com>

The following commit has been merged into the irq/irqchip-next branch of irqchip:

Commit-ID:     32b5f8a6f5de384291ea4083541ad10725c7a054
Gitweb:        https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms/32b5f8a6f5de384291ea4083541ad10725c7a054
Author:        Yangtao Li <frank.li@vivo.com>
AuthorDate:    Tue, 04 Jul 2023 18:02:52 +08:00
Committer:     Marc Zyngier <maz@kernel.org>
CommitterDate: Mon, 21 Aug 2023 17:49:11 +01:00

irqchip/ls-scfg-msi: Use 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: Yangtao Li <frank.li@vivo.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20230704100253.36045-1-frank.li@vivo.com
---
 drivers/irqchip/irq-ls-scfg-msi.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/irqchip/irq-ls-scfg-msi.c b/drivers/irqchip/irq-ls-scfg-msi.c
index f5ba3f9..f31a262 100644
--- a/drivers/irqchip/irq-ls-scfg-msi.c
+++ b/drivers/irqchip/irq-ls-scfg-msi.c
@@ -349,8 +349,7 @@ static int ls_scfg_msi_probe(struct platform_device *pdev)
 
 	msi_data->cfg = (struct ls_scfg_msi_cfg *) match->data;
 
-	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
-	msi_data->regs = devm_ioremap_resource(&pdev->dev, res);
+	msi_data->regs = devm_platform_get_and_ioremap_resource(pdev, 0, &res);
 	if (IS_ERR(msi_data->regs)) {
 		dev_err(&pdev->dev, "failed to initialize 'regs'\n");
 		return PTR_ERR(msi_data->regs);

      parent reply	other threads:[~2023-08-21 16:58 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-07-04 10:02 [PATCH 1/2] " Yangtao Li
2023-07-04 10:02 ` [PATCH 2/2] irqchip/irq-mvebu-sei: " Yangtao Li
2023-07-04 23:34   ` Andrew Lunn
2023-08-21 16:58   ` [irqchip: irq/irqchip-next] " irqchip-bot for Yangtao Li
2023-08-21 16:58 ` irqchip-bot for Yangtao Li [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=169263708370.27769.167151814933190878.tip-bot2@tip-bot2 \
    --to=tip-bot2@linutronix.de \
    --cc=frank.li@vivo.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®