Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 556ce55b authored by Thierry Reding's avatar Thierry Reding Committed by Linus Walleij
Browse files

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: default avatarThierry Reding <treding@nvidia.com>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent f5292d06
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -6078,6 +6078,7 @@ static int atlas7_gpio_probe(struct platform_device *pdev)
		bank = &a7gc->banks[idx];
		bank = &a7gc->banks[idx];
		/* Set ctrl registers' base of this bank */
		/* Set ctrl registers' base of this bank */
		bank->base = ATLAS7_GPIO_BASE(a7gc, idx);
		bank->base = ATLAS7_GPIO_BASE(a7gc, idx);
		bank->gpio_offset = idx * NGPIO_OF_BANK;


		/* Get interrupt number from DTS */
		/* Get interrupt number from DTS */
		ret = of_irq_get(np, idx);
		ret = of_irq_get(np, idx);