summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2021-12-23 15:26:39 +0300
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>2022-01-24 18:23:15 +0300
commitb3376ed7d82f5937cecb17ff92d5d8dc0762e1c1 (patch)
tree6758cd89e9e8a455091c6b4122a59059e127dfac
parentf473bdccb8775e8935cc08ca9800cae5f700a9b5 (diff)
downloadlinux-b3376ed7d82f5937cecb17ff92d5d8dc0762e1c1.tar.xz
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>
-rw-r--r--drivers/gpio/gpio-tegra.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/gpio/gpio-tegra.c b/drivers/gpio/gpio-tegra.c
index 7f5bc10a6479..ff2d2a1f9c73 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;