media: i2c: max9286: Get rid of duplicate of_node assignment
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 2 Dec 2021 21:03:35 +0000 (22:03 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Tue, 14 Dec 2021 14:09:13 +0000 (15:09 +0100)
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 assignment here.

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: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/i2c/max9286.c

index 7c663fd587bbeefa0e3855a8b23d1ac4e3187b61..a662d3aa0641c26a7972a826e479e5f2cfec4831 100644 (file)
@@ -1055,7 +1055,6 @@ static int max9286_register_gpio(struct max9286_priv *priv)
        gpio->label = dev_name(dev);
        gpio->parent = dev;
        gpio->owner = THIS_MODULE;
-       gpio->of_node = dev->of_node;
        gpio->ngpio = 2;
        gpio->base = -1;
        gpio->set = max9286_gpio_set;