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:
f5292d0
)
pinctrl: sirf: atlas7: Initialize GPIO offset
author
Thierry Reding
<treding@nvidia.com>
Thu, 20 Jul 2017 17:01:07 +0000
(19:01 +0200)
committer
Linus Walleij
<linus.walleij@linaro.org>
Mon, 14 Aug 2017 13:01:02 +0000
(15:01 +0200)
The GPIO offset is never initialized, which means that it will end up
being zero as per the devm_kzalloc() of the parent structure.
Signed-off-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/sirf/pinctrl-atlas7.c
patch
|
blob
|
history
diff --git
a/drivers/pinctrl/sirf/pinctrl-atlas7.c
b/drivers/pinctrl/sirf/pinctrl-atlas7.c
index
1efa315
..
d1ef82c
100644
(file)
--- a/
drivers/pinctrl/sirf/pinctrl-atlas7.c
+++ b/
drivers/pinctrl/sirf/pinctrl-atlas7.c
@@
-6078,6
+6078,7
@@
static int atlas7_gpio_probe(struct platform_device *pdev)
bank = &a7gc->banks[idx];
/* Set ctrl registers' base of this bank */
bank->base = ATLAS7_GPIO_BASE(a7gc, idx);
+ bank->gpio_offset = idx * NGPIO_OF_BANK;
/* Get interrupt number from DTS */
ret = of_irq_get(np, idx);