* [PATCH RESEND] gpio: tz1090-pdc: Use resource_size to fix off-by-one resource size calculation
@ 2015-01-21 1:52 Axel Lin
2015-01-29 9:36 ` Linus Walleij
0 siblings, 1 reply; 2+ messages in thread
From: Axel Lin @ 2015-01-21 1:52 UTC (permalink / raw)
To: Linus Walleij, Alexandre Courbot; +Cc: James Hogan, linux-gpio@vger.kernel.org
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Acked-by: James Hogan <james.hogan@imgtec.com>
---
Hi Linus,
Seems this one was missed.
Thanks,
Axel
drivers/gpio/gpio-tz1090-pdc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpio/gpio-tz1090-pdc.c b/drivers/gpio/gpio-tz1090-pdc.c
index d753622..ede7e40 100644
--- a/drivers/gpio/gpio-tz1090-pdc.c
+++ b/drivers/gpio/gpio-tz1090-pdc.c
@@ -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;
--
1.9.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH RESEND] gpio: tz1090-pdc: Use resource_size to fix off-by-one resource size calculation
2015-01-21 1:52 [PATCH RESEND] gpio: tz1090-pdc: Use resource_size to fix off-by-one resource size calculation Axel Lin
@ 2015-01-29 9:36 ` Linus Walleij
0 siblings, 0 replies; 2+ messages in thread
From: Linus Walleij @ 2015-01-29 9:36 UTC (permalink / raw)
To: Axel Lin; +Cc: Alexandre Courbot, James Hogan, linux-gpio@vger.kernel.org
On Wed, Jan 21, 2015 at 2:52 AM, Axel Lin <axel.lin@ingics.com> wrote:
> Signed-off-by: Axel Lin <axel.lin@ingics.com>
> Acked-by: James Hogan <james.hogan@imgtec.com>
> ---
> Hi Linus,
> Seems this one was missed.
Ooops. Patch applied.
Yours,
Linus Walleij
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-01-29 9:36 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-21 1:52 [PATCH RESEND] gpio: tz1090-pdc: Use resource_size to fix off-by-one resource size calculation Axel Lin
2015-01-29 9:36 ` Linus Walleij
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).