From: Andy Shevchenko Date: Thu, 23 Dec 2021 12:26:39 +0000 (+0200) Subject: gpio: tegra: Get rid of duplicate of_node assignment X-Git-Tag: core-urgent-2022-04-03~66^2~2^2~1 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=b3376ed7d82f5937cecb17ff92d5d8dc0762e1c1;p=users%2Fdwmw2%2Flinux.git 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 Reviewed-by: Thierry Reding Tested-by: Thierry Reding --- diff --git a/drivers/gpio/gpio-tegra.c b/drivers/gpio/gpio-tegra.c index 7f5bc10a64792..ff2d2a1f9c732 100644 --- a/drivers/gpio/gpio-tegra.c +++ b/drivers/gpio/gpio-tegra.c @@ -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;