mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-11 21:38:32 +08:00
pinctrl: sirf: atlas7: Initialize GPIO offset
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>
This commit is contained in:
parent
f5292d06c4
commit
556ce55b73
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user