diff mbox

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

Message ID 1348739746-21184-1-git-send-email-Barry.Song@csr.com (mailing list archive)
State New, archived
Headers show

Commit Message

Barry Song Sept. 27, 2012, 9:55 a.m. UTC
From: Barry Song <Baohua.Song@csr.com>

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

Signed-off-by: Baohua Song <Baohua.Song@csr.com>
---
 drivers/pinctrl/pinctrl-sirf.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

Comments

Linus Walleij Sept. 28, 2012, 7:24 a.m. UTC | #1
On Thu, Sep 27, 2012 at 11:55 AM, Barry Song <Barry.Song@csr.com> wrote:

> From: Barry Song <Baohua.Song@csr.com>
>
> This patch initializes the optional irq_chip pointer gc in sirfsoc
> pinctrl_gpio_range.
>
> Signed-off-by: Baohua Song <Baohua.Song@csr.com>

Applied, thanks!
Linus Walleij
diff mbox

Patch

diff --git a/drivers/pinctrl/pinctrl-sirf.c b/drivers/pinctrl/pinctrl-sirf.c
index 6eae934..9a984e8 100644
--- a/drivers/pinctrl/pinctrl-sirf.c
+++ b/drivers/pinctrl/pinctrl-sirf.c
@@ -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");