diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2021-12-17 17:39:35 +0100 |
---|---|---|
committer | Bartosz Golaszewski <brgl@bgdev.pl> | 2021-12-17 17:39:35 +0100 |
commit | 448cf90513d954ba5a61ce392809d6936902a9e6 (patch) | |
tree | bcc1b7e3ff72fa76daea63ebd57ddc059c3b4aa9 /drivers/gpio/gpio-bd71828.c | |
parent | ca7e7822d106a821331afd7388a754f572e7c096 (diff) | |
download | linux-448cf90513d954ba5a61ce392809d6936902a9e6.tar.bz2 |
gpio: Get rid of duplicate of_node assignment in the drivers
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.
While at it, remove duplicate parent device assignment where it is the case.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-By: Matti Vaittinen <matti.vaittinen@fi.rohmeurope.com>
Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
Diffstat (limited to 'drivers/gpio/gpio-bd71828.c')
-rw-r--r-- | drivers/gpio/gpio-bd71828.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/gpio/gpio-bd71828.c b/drivers/gpio/gpio-bd71828.c index c8e382b53f2f..b2ccc320c7b5 100644 --- a/drivers/gpio/gpio-bd71828.c +++ b/drivers/gpio/gpio-bd71828.c @@ -121,7 +121,6 @@ static int bd71828_probe(struct platform_device *pdev) * "gpio-reserved-ranges" and exclude them from control */ bdgpio->gpio.ngpio = 4; - bdgpio->gpio.of_node = dev->parent->of_node; bdgpio->regmap = dev_get_regmap(dev->parent, NULL); if (!bdgpio->regmap) return -ENODEV; |