Skip to contentSkip to conversation

pinctrl: sirf: initialize the irq_chip pointer of pinctrl_gpio_range

PATCH New Barry Song 2 participants 2 messages Sep 27, 2012 – Sep 28, 2012 Pin control

lore
Share & tools
lore

Barry Song

author
#0 lore raw

PATCH 4/6 pinctrl: sirf: initialize the irq_chip pointer of pinctrl_gpio_range

From: Barry Song <[email protected]>

This patch initializes the optional irq_chip pointer gc in sirfsoc pinctrl_gpio_range.

---
 drivers/pinctrl/pinctrl-sirf.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
drivers/pinctrl/pinctrl-sirf.c +3 -1
index 6eae934..9a984e8 100644
@@ -1266,8 +1266,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");
 
Signature · 6 lines
1.7.0.4



Member of the CSR plc group of companies. CSR plc registered in England and Wales, registered number 4187346, registered office Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, United Kingdom
More information can be found at www.csr.com. Follow CSR on Twitter at http://twitter.com/CSR_PLC and read our blog at www.csr.com/blog
#1 lore raw

PATCH 4/6 pinctrl: sirf: initialize the irq_chip pointer of pinctrl_gpio_range

Quoted 6 lines · Barry Song

From: Barry Song <[email protected]>

This patch initializes the optional irq_chip pointer gc in sirfsoc pinctrl_gpio_range.

Applied, thanks!
Linus Walleij