Skip to content

Commit 2702c9b

Browse files
andy-shevpavelmachek
authored andcommitted
leds: lgm-sso: 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. Call graph: --> sso_gpio_gc_init() --> devm_gpiochip_add_data --> devm_gpiochip_add_data_with_key --> gpiochip_add_data_with_key() --> of_gpio_dev_init() Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Pavel Machek <pavel@ucw.cz>
1 parent 27d1a62 commit 2702c9b

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/leds/blink/leds-lgm-sso.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,6 @@ static int sso_gpio_gc_init(struct device *dev, struct sso_led_priv *priv)
477477
gc->ngpio = priv->gpio.pins;
478478
gc->parent = dev;
479479
gc->owner = THIS_MODULE;
480-
gc->of_node = dev->of_node;
481480

482481
return devm_gpiochip_add_data(dev, gc, priv);
483482
}

0 commit comments

Comments
 (0)