diff options
author | Vasyl Gomonovych <gomonovych@gmail.com> | 2017-11-20 17:02:41 -0500 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2017-11-23 14:09:12 -0500 |
commit | 328bf1b29c3741de3c55f2b2e5179d18f16ba9c1 (patch) | |
tree | bd844208d90e37529175205b50d75b43024b5451 /drivers/irqchip/irq-imgpdc.c | |
parent | e9990d70e8a063a7b894c5cbb99f630a0f41200d (diff) |
irqchip/imgpdc: Use resource_size function on resource object
drivers/irqchip/irq-imgpdc.c:327:20-23: WARNING: Suspicious code.
resource_size is maybe missing with res_regs
Generated by: scripts/coccinelle/api/resource_size.cocci
Signed-off-by: Vasyl Gomonovych <gomonovych@gmail.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: marc.zyngier@arm.com
Cc: jason@lakedaemon.net
Link: https://lkml.kernel.org/r/1511215361-8279-1-git-send-email-gomonovych@gmail.com
Diffstat (limited to 'drivers/irqchip/irq-imgpdc.c')
-rw-r--r-- | drivers/irqchip/irq-imgpdc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/irqchip/irq-imgpdc.c b/drivers/irqchip/irq-imgpdc.c index 1f59998e03f8..e80263e16c4c 100644 --- a/drivers/irqchip/irq-imgpdc.c +++ b/drivers/irqchip/irq-imgpdc.c | |||
@@ -325,7 +325,7 @@ static int pdc_intc_probe(struct platform_device *pdev) | |||
325 | 325 | ||
326 | /* Ioremap the registers */ | 326 | /* Ioremap the registers */ |
327 | priv->pdc_base = devm_ioremap(&pdev->dev, res_regs->start, | 327 | priv->pdc_base = devm_ioremap(&pdev->dev, res_regs->start, |
328 | res_regs->end - res_regs->start); | 328 | resource_size(res_regs)); |
329 | if (!priv->pdc_base) | 329 | if (!priv->pdc_base) |
330 | return -EIO; | 330 | return -EIO; |
331 | 331 | ||