Skip to content

Commit b3376ed

Browse files
committed
gpio: tegra: Get rid of duplicate of_node assignment
GPIO library does copy the of_node from the parent device of the GPIO chip, there is no need to repeat this in the individual drivers. Remove these assignment all at once. For the details one may look into the of_gpio_dev_init() implementation. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Reviewed-by: Thierry Reding <treding@nvidia.com> Tested-by: Thierry Reding <treding@nvidia.com>
1 parent f473bdc commit b3376ed

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

drivers/gpio/gpio-tegra.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -691,7 +691,6 @@ static int tegra_gpio_probe(struct platform_device *pdev)
691691
tgi->gc.base = 0;
692692
tgi->gc.ngpio = tgi->bank_count * 32;
693693
tgi->gc.parent = &pdev->dev;
694-
tgi->gc.of_node = pdev->dev.of_node;
695694

696695
tgi->ic.name = "GPIO";
697696
tgi->ic.irq_ack = tegra_gpio_irq_ack;

0 commit comments

Comments
 (0)