gpio: arizona: Use the of_node from the Arizona device
Subsystems (2)
PATCH 1/1 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 <[email protected]>
--- drivers/gpio/gpio-arizona.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-)
drivers/gpio/gpio-arizona.c +3 -0
@@ -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 :
Signature · 1 line
1.7.2.5
Quoted 4 lines · Charles Keepax
We need to use the
of_nodefrom the main Arizona device as that holds our configuration.Signed-off-by Charles Keepax <[email protected]>
Patch applied.
Yours,
Linus Walleij