lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <169263708321.27769.10287078291229984853.tip-bot2@tip-bot2>
Date:   Mon, 21 Aug 2023 16:58:03 -0000
From:   "irqchip-bot for Yangtao Li" <tip-bot2@...utronix.de>
To:     linux-kernel@...r.kernel.org
Cc:     Yangtao Li <frank.li@...o.com>, Andrew Lunn <andrew@...n.ch>,
        Marc Zyngier <maz@...nel.org>, tglx@...utronix.de
Subject: [irqchip: irq/irqchip-next] irqchip/irq-mvebu-sei: Use
 devm_platform_get_and_ioremap_resource()

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

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

irqchip/irq-mvebu-sei: 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@...o.com>
Reviewed-by: Andrew Lunn <andrew@...n.ch>
Signed-off-by: Marc Zyngier <maz@...nel.org>
Link: https://lore.kernel.org/r/20230704100253.36045-2-frank.li@vivo.com
---
 drivers/irqchip/irq-mvebu-sei.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/irqchip/irq-mvebu-sei.c b/drivers/irqchip/irq-mvebu-sei.c
index 4ecef6d..a48dbe9 100644
--- a/drivers/irqchip/irq-mvebu-sei.c
+++ b/drivers/irqchip/irq-mvebu-sei.c
@@ -377,8 +377,7 @@ static int mvebu_sei_probe(struct platform_device *pdev)
 	mutex_init(&sei->cp_msi_lock);
 	raw_spin_lock_init(&sei->mask_lock);
 
-	sei->res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
-	sei->base = devm_ioremap_resource(sei->dev, sei->res);
+	sei->base = devm_platform_get_and_ioremap_resource(pdev, 0, &sei->res);
 	if (IS_ERR(sei->base))
 		return PTR_ERR(sei->base);
 

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ