Skip to content

Commit

Permalink
pinctrl: sirf: initialize the irq_chip pointer of pinctrl_gpio_range
Browse files Browse the repository at this point in the history
This patch initializes the optional irq_chip pointer gc in sirfsoc
pinctrl_gpio_range.

Signed-off-by: Baohua Song <Baohua.Song@csr.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
  • Loading branch information
Barry Song authored and Linus Walleij committed Sep 28, 2012
1 parent 58d26c1 commit 1983040
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/pinctrl/pinctrl-sirf.c
Original file line number Diff line number Diff line change
Expand Up @@ -1210,8 +1210,10 @@ static int __devinit sirfsoc_pinmux_probe(struct platform_device *pdev)
goto out_no_pmx;
}

for (i = 0; i < ARRAY_SIZE(sirfsoc_gpio_ranges); i++)
for (i = 0; i < ARRAY_SIZE(sirfsoc_gpio_ranges); i++) {
sirfsoc_gpio_ranges[i].gc = &sgpio_bank[i].chip.gc;
pinctrl_add_gpio_range(spmx->pmx, &sirfsoc_gpio_ranges[i]);
}

dev_info(&pdev->dev, "initialized SIRFSOC pinmux driver\n");

Expand Down

0 comments on commit 1983040

Please sign in to comment.