mirror of
https://github.com/torvalds/linux.git
synced 2024-12-24 20:01:55 +00:00
media: i2c: max9286: 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 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>
This commit is contained in:
parent
8cc464fdca
commit
9de63c9196
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user