gpio: tegra: Get rid of duplicate of_node assignment
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 23 Dec 2021 12:26:39 +0000 (14:26 +0200)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 24 Jan 2022 15:23:15 +0000 (17:23 +0200)
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>
drivers/gpio/gpio-tegra.c

index 7f5bc10..ff2d2a1 100644 (file)
@@ -691,7 +691,6 @@ static int tegra_gpio_probe(struct platform_device *pdev)
        tgi->gc.base                    = 0;
        tgi->gc.ngpio                   = tgi->bank_count * 32;
        tgi->gc.parent                  = &pdev->dev;
-       tgi->gc.of_node                 = pdev->dev.of_node;
 
        tgi->ic.name                    = "GPIO";
        tgi->ic.irq_ack                 = tegra_gpio_irq_ack;