Skip to contentSkip to conversation

gpio: tps65910: initialize of_node of gpio_chip

PATCH Applied Laxman Dewangan 2 participants 3 messages Jul 4, 2012 – Jul 5, 2012 GPIO

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 gpio: tps65910: initialize of_node of gpio_chip

Initialize the gpio chip's of_node to the device's node to work with DT based system.

---
 drivers/gpio/gpio-tps65910.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/gpio/gpio-tps65910.c +1 -0
index c1ad288..0749f96 100644
@@ -149,6 +149,7 @@ static int __devinit tps65910_gpio_probe(struct platform_device *pdev)
 	tps65910_gpio->gpio_chip.set	= tps65910_gpio_set;
 	tps65910_gpio->gpio_chip.get	= tps65910_gpio_get;
 	tps65910_gpio->gpio_chip.dev = &pdev->dev;
+	tps65910_gpio->gpio_chip.of_node = tps65910->dev->of_node;
 	if (pdata && pdata->gpio_base)
 		tps65910_gpio->gpio_chip.base = pdata->gpio_base;
 	else
Signature · 1 line
1.7.1.1
#1 lore raw
Quoted 4 lines · Laxman Dewangan

Initialize the gpio chip's of_node to the device's node to work with DT based system.

Applied.

I will not send this to the -rc:s unless you tell me it's urgent... I couldn't quite tell if it was.

Yours,
Linus Walleij

#2 lore raw
Quoted 10 lines · Linus Walleij
Quoted 4 lines · Laxman Dewangan

Initialize the gpio chip's of_node to the device's node to work with DT based system.

Applied.

I will not send this to the -rc:s unless you tell me it's urgent... I couldn't quite tell if it was.

Having on next rc is good.