Commit 69da32b5 authored by Yangtao Li's avatar Yangtao Li Committed by Marc Zyngier

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: default avatarYangtao Li <frank.li@vivo.com>
Reviewed-by: default avatarAndrew Lunn <andrew@lunn.ch>
Signed-off-by: default avatarMarc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20230704100253.36045-2-frank.li@vivo.com
parent 32b5f8a6
...@@ -377,8 +377,7 @@ static int mvebu_sei_probe(struct platform_device *pdev) ...@@ -377,8 +377,7 @@ static int mvebu_sei_probe(struct platform_device *pdev)
mutex_init(&sei->cp_msi_lock); mutex_init(&sei->cp_msi_lock);
raw_spin_lock_init(&sei->mask_lock); raw_spin_lock_init(&sei->mask_lock);
sei->res = platform_get_resource(pdev, IORESOURCE_MEM, 0); sei->base = devm_platform_get_and_ioremap_resource(pdev, 0, &sei->res);
sei->base = devm_ioremap_resource(sei->dev, sei->res);
if (IS_ERR(sei->base)) if (IS_ERR(sei->base))
return PTR_ERR(sei->base); return PTR_ERR(sei->base);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment