Skip to content

Commit 626f991

Browse files
ldewanganlinusw
authored andcommitted
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. Signed-off-by: Laxman Dewangan <[email protected]> Signed-off-by: Linus Walleij <[email protected]>
1 parent 33a4e98 commit 626f991

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/gpio/gpio-tps65910.c

+1
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ static int __devinit tps65910_gpio_probe(struct platform_device *pdev)
149149
tps65910_gpio->gpio_chip.set = tps65910_gpio_set;
150150
tps65910_gpio->gpio_chip.get = tps65910_gpio_get;
151151
tps65910_gpio->gpio_chip.dev = &pdev->dev;
152+
tps65910_gpio->gpio_chip.of_node = tps65910->dev->of_node;
152153
if (pdata && pdata->gpio_base)
153154
tps65910_gpio->gpio_chip.base = pdata->gpio_base;
154155
else

0 commit comments

Comments
 (0)