gpio: arizona: Use the of_node from the Arizona device
authorCharles Keepax <ckeepax@opensource.wolfsonmicro.com>
Sun, 29 Sep 2013 20:00:37 +0000 (21:00 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 2 Oct 2013 10:50:35 +0000 (12:50 +0200)
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>
drivers/gpio/gpio-arizona.c

index a2bec3c..dceb5dc 100644 (file)
@@ -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: