diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2021-12-14 13:58:54 +0100 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2021-12-16 04:18:30 +0100 |
commit | 8a8d6bbe1d3bc7137c777ba06246d7e9c08dde4d (patch) | |
tree | d4ca8e3684bd991797c60a1f8a0ab999bf339e73 /drivers/pinctrl/spear | |
parent | pinctrl-sunxi: don't call pinctrl_gpio_direction() (diff) | |
download | linux-8a8d6bbe1d3bc7137c777ba06246d7e9c08dde4d.tar.xz linux-8a8d6bbe1d3bc7137c777ba06246d7e9c08dde4d.zip |
pinctrl: 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.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20211214125855.33207-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl/spear')
-rw-r--r-- | drivers/pinctrl/spear/pinctrl-plgpio.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/pinctrl/spear/pinctrl-plgpio.c b/drivers/pinctrl/spear/pinctrl-plgpio.c index b36449724f3f..ada401ef4342 100644 --- a/drivers/pinctrl/spear/pinctrl-plgpio.c +++ b/drivers/pinctrl/spear/pinctrl-plgpio.c @@ -581,7 +581,6 @@ static int plgpio_probe(struct platform_device *pdev) plgpio->chip.label = dev_name(&pdev->dev); plgpio->chip.parent = &pdev->dev; plgpio->chip.owner = THIS_MODULE; - plgpio->chip.of_node = pdev->dev.of_node; if (!IS_ERR(plgpio->clk)) { ret = clk_prepare(plgpio->clk); |