summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorCharles Keepax2013-09-29 22:00:37 +0200
committerLinus Walleij2013-10-02 12:50:35 +0200
commit4bbd6f2e4902b18fcf5861d36588729c93ecda40 (patch)
treeb5695a22968d4ed3200d67b216fa0f673ffbb503 /drivers
parentgpio: twl4030: Remove redundant of_match_ptr (diff)
downloadkernel-qcow2-linux-4bbd6f2e4902b18fcf5861d36588729c93ecda40.tar.gz
kernel-qcow2-linux-4bbd6f2e4902b18fcf5861d36588729c93ecda40.tar.xz
kernel-qcow2-linux-4bbd6f2e4902b18fcf5861d36588729c93ecda40.zip
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')
-rw-r--r--drivers/gpio/gpio-arizona.c3
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)
arizona_gpio->arizona = arizona;
arizona_gpio->gpio_chip = template_chip;
arizona_gpio->gpio_chip.dev = &pdev->dev;
+#ifdef CONFIG_OF_GPIO
+ arizona_gpio->gpio_chip.of_node = arizona->dev->of_node;
+#endif
switch (arizona->type) {
case WM5102: