diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2021-12-14 16:27:39 +0200 |
---|---|---|
committer | Pavel Machek <pavel@ucw.cz> | 2022-01-12 19:43:15 +0100 |
commit | 2702c9be20acf61c5c4cdee273792c3a4c92db12 (patch) | |
tree | 8fa5626859eb35ddf7ab04a4692e441749a57381 /drivers/leds | |
parent | 27d1a6210d27c973f6bb31a24836099fb8c925ab (diff) | |
download | linux-2702c9be20acf61c5c4cdee273792c3a4c92db12.tar.gz linux-2702c9be20acf61c5c4cdee273792c3a4c92db12.tar.bz2 linux-2702c9be20acf61c5c4cdee273792c3a4c92db12.zip |
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>
Diffstat (limited to 'drivers/leds')
-rw-r--r-- | drivers/leds/blink/leds-lgm-sso.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/leds/blink/leds-lgm-sso.c b/drivers/leds/blink/leds-lgm-sso.c index fd8b7573285a..6f270c0272fb 100644 --- a/drivers/leds/blink/leds-lgm-sso.c +++ b/drivers/leds/blink/leds-lgm-sso.c @@ -477,7 +477,6 @@ static int sso_gpio_gc_init(struct device *dev, struct sso_led_priv *priv) gc->ngpio = priv->gpio.pins; gc->parent = dev; gc->owner = THIS_MODULE; - gc->of_node = dev->of_node; return devm_gpiochip_add_data(dev, gc, priv); } |