From: Daode Huang <huangdaode@xxxxxxxxxxxx>
Use the new helper that wraps the calls to platform_get_resource()
and devm_ioremap_resource() together
Signed-off-by: Daode Huang <huangdaode@xxxxxxxxxxxx>
---
drivers/irqchip/irq-mvebu-icu.c | 3 +--
drivers/irqchip/irq-mvebu-pic.c | 3 +--
drivers/irqchip/irq-stm32-exti.c | 3 +--
drivers/irqchip/irq-ti-sci-inta.c | 3 +--
drivers/irqchip/irq-ts4800.c | 3 +--
5 files changed, 5 insertions(+), 10 deletions(-)
diff --git a/drivers/irqchip/irq-mvebu-icu.c
b/drivers/irqchip/irq-mvebu-icu.c
index 547045d..ddf9b0d 100644
--- a/drivers/irqchip/irq-mvebu-icu.c
+++ b/drivers/irqchip/irq-mvebu-icu.c
@@ -357,8 +357,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, res);