aboutsummaryrefslogtreecommitdiff
path: root/drivers/pinctrl/cirrus
diff options
context:
space:
mode:
authorAndy Shevchenko2021-12-14 14:58:54 +0200
committerLinus Walleij2021-12-16 04:18:30 +0100
commit8a8d6bbe1d3bc7137c777ba06246d7e9c08dde4d (patch)
treed4ca8e3684bd991797c60a1f8a0ab999bf339e73 /drivers/pinctrl/cirrus
parent8df89a7cbc63c7598c00611ad17b67e8d5b4fad3 (diff)
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/cirrus')
-rw-r--r--drivers/pinctrl/cirrus/pinctrl-lochnagar.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/pinctrl/cirrus/pinctrl-lochnagar.c b/drivers/pinctrl/cirrus/pinctrl-lochnagar.c
index 670ac53a3141..3fda4446d70b 100644
--- a/drivers/pinctrl/cirrus/pinctrl-lochnagar.c
+++ b/drivers/pinctrl/cirrus/pinctrl-lochnagar.c
@@ -1161,9 +1161,6 @@ static int lochnagar_pin_probe(struct platform_device *pdev)
priv->gpio_chip.can_sleep = true;
priv->gpio_chip.parent = dev;
priv->gpio_chip.base = -1;
-#ifdef CONFIG_OF_GPIO
- priv->gpio_chip.of_node = dev->of_node;
-#endif
switch (lochnagar->type) {
case LOCHNAGAR1: