gpio: tz1090-pdc: Use resource_size to fix off-by-one resource size calculation
PATCH RESEND 1/1 gpio: tz1090-pdc: Use resource_size to fix off-by-one resource size calculation
Signed-off-by Axel Lin <[email protected]>
Acked-by James Hogan <[email protected]>
---
Hi Linus,
Seems this one was missed.
Thanks,
Axel
drivers/gpio/gpio-tz1090-pdc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpio/gpio-tz1090-pdc.c +1 -1
@@ -190,7 +190,7 @@ static int tz1090_pdc_gpio_probe(struct platform_device *pdev)/* Ioremap the registers */ priv->reg =devm_ioremap (&pdev->dev, res_regs->start, - res_regs->end - res_regs->start); +resource_size (res_regs));if (!priv->reg) {dev_err (&pdev->dev,"unable to ioremap registers\n" );return -ENOMEM ;
Signature · 1 line
1.9.1
Quoted 5 lines · Axel Lin
Signed-off-by Axel Lin <[email protected]>Acked-by James Hogan <[email protected]>---
Hi Linus,
Seems this one was missed.
Ooops. Patch applied.
Yours,
Linus Walleij