]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
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 a2bec3c6db94917ecfa4fb3e7e8113efd6b527c9..dceb5dcf9d16d21da3ac2e022f4b893731cd663c 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: