aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pinctrl
diff options
context:
space:
mode:
authorBarry Song <Baohua.Song@csr.com>2012-09-27 05:55:46 -0400
committerLinus Walleij <linus.walleij@linaro.org>2012-09-28 03:27:36 -0400
commit19830401396d19345ea5ada50a9adddbf1fd65f0 (patch)
tree5799d2d2ce8fc0c6389cf4ea07a81b7eeeaf3bf8 /drivers/pinctrl
parent58d26c1eab8e94f89f17593e11d88a3821be6c3c (diff)
pinctrl: sirf: initialize the irq_chip pointer of pinctrl_gpio_range
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>
Diffstat (limited to 'drivers/pinctrl')
-rw-r--r--drivers/pinctrl/pinctrl-sirf.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/pinctrl/pinctrl-sirf.c b/drivers/pinctrl/pinctrl-sirf.c
index 0f4f833e3c93..8bf781e8c35e 100644
--- a/drivers/pinctrl/pinctrl-sirf.c
+++ b/drivers/pinctrl/pinctrl-sirf.c
@@ -1210,8 +1210,10 @@ static int __devinit sirfsoc_pinmux_probe(struct platform_device *pdev)
1210 goto out_no_pmx; 1210 goto out_no_pmx;
1211 } 1211 }
1212 1212
1213 for (i = 0; i < ARRAY_SIZE(sirfsoc_gpio_ranges); i++) 1213 for (i = 0; i < ARRAY_SIZE(sirfsoc_gpio_ranges); i++) {
1214 sirfsoc_gpio_ranges[i].gc = &sgpio_bank[i].chip.gc;
1214 pinctrl_add_gpio_range(spmx->pmx, &sirfsoc_gpio_ranges[i]); 1215 pinctrl_add_gpio_range(spmx->pmx, &sirfsoc_gpio_ranges[i]);
1216 }
1215 1217
1216 dev_info(&pdev->dev, "initialized SIRFSOC pinmux driver\n"); 1218 dev_info(&pdev->dev, "initialized SIRFSOC pinmux driver\n");
1217 1219