projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
74b18de
)
gpio: tz1090-pdc: Use resource_size to fix off-by-one resource size calculation
author
Axel Lin
<axel.lin@ingics.com>
Wed, 21 Jan 2015 01:52:01 +0000
(09:52 +0800)
committer
Linus Walleij
<linus.walleij@linaro.org>
Thu, 29 Jan 2015 09:34:13 +0000
(10:34 +0100)
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Acked-by: James Hogan <james.hogan@imgtec.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-tz1090-pdc.c
patch
|
blob
|
history
diff --git
a/drivers/gpio/gpio-tz1090-pdc.c
b/drivers/gpio/gpio-tz1090-pdc.c
index
d753622
..
ede7e40
100644
(file)
--- 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
);
+ res
ource_size(res_regs)
);
if (!priv->reg) {
dev_err(&pdev->dev, "unable to ioremap registers\n");
return -ENOMEM;