mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
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 <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Cc: [email protected] Cc: [email protected] Link: https://lkml.kernel.org/r/[email protected]
This commit is contained in:
parent
e9990d70e8
commit
328bf1b29c
1 changed files with 1 additions and 1 deletions
|
|
@ -325,7 +325,7 @@ static int pdc_intc_probe(struct platform_device *pdev)
|
|||
|
||||
/* Ioremap the registers */
|
||||
priv->pdc_base = devm_ioremap(&pdev->dev, res_regs->start,
|
||||
res_regs->end - res_regs->start);
|
||||
resource_size(res_regs));
|
||||
if (!priv->pdc_base)
|
||||
return -EIO;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue