Skip to contentSkip to conversation

gpio: arizona: Use the of_node from the Arizona device

PATCH In review Charles Keepax 2 participants 2 messages Sep 29, 2013 – Oct 2, 2013

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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.

---
 drivers/gpio/gpio-arizona.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
drivers/gpio/gpio-arizona.c +3 -0
index a2bec3c..dceb5dc 100644
@@ -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