projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a7ce835
)
gpio: tz1090: Use resource_size to fix off-by-one
author
Axel Lin
<axel.lin@ingics.com>
Sun, 28 Dec 2014 06:00:39 +0000
(14:00 +0800)
committer
Linus Walleij
<linus.walleij@linaro.org>
Thu, 15 Jan 2015 16:23:21 +0000
(17:23 +0100)
Use resource_size to fix off-by-one resource size calculation
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.c
patch
|
blob
|
history
diff --git
a/drivers/gpio/gpio-tz1090.c
b/drivers/gpio/gpio-tz1090.c
index e3024bbba447ed6d12d87c1c23453bed123d0809..445660adc898918d8c32cb9b09816762157dfc2c 100644
(file)
--- a/
drivers/gpio/gpio-tz1090.c
+++ b/
drivers/gpio/gpio-tz1090.c
@@
-573,7
+573,7
@@
static int tz1090_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;