diff options
author | Charles Keepax <ckeepax@opensource.wolfsonmicro.com> | 2013-09-29 16:00:37 -0400 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2013-10-02 06:50:35 -0400 |
commit | 4bbd6f2e4902b18fcf5861d36588729c93ecda40 (patch) | |
tree | b5695a22968d4ed3200d67b216fa0f673ffbb503 /drivers/gpio/gpio-arizona.c | |
parent | e5560af49b2d0148c293cffaa53823227b0585b3 (diff) |
gpio: arizona: Use the of_node from the Arizona device
We need to use the of_node from the main Arizona device as that
holds our configuration.
Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/gpio/gpio-arizona.c')
-rw-r--r-- | drivers/gpio/gpio-arizona.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpio/gpio-arizona.c b/drivers/gpio/gpio-arizona.c index a2bec3c6db94..dceb5dcf9d16 100644 --- a/drivers/gpio/gpio-arizona.c +++ b/drivers/gpio/gpio-arizona.c | |||
@@ -109,6 +109,9 @@ static int arizona_gpio_probe(struct platform_device *pdev) | |||
109 | arizona_gpio->arizona = arizona; | 109 | arizona_gpio->arizona = arizona; |
110 | arizona_gpio->gpio_chip = template_chip; | 110 | arizona_gpio->gpio_chip = template_chip; |
111 | arizona_gpio->gpio_chip.dev = &pdev->dev; | 111 | arizona_gpio->gpio_chip.dev = &pdev->dev; |
112 | #ifdef CONFIG_OF_GPIO | ||
113 | arizona_gpio->gpio_chip.of_node = arizona->dev->of_node; | ||
114 | #endif | ||
112 | 115 | ||
113 | switch (arizona->type) { | 116 | switch (arizona->type) { |
114 | case WM5102: | 117 | case WM5102: |