Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

net: dsa: vsc73xxx: 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.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Vladimir Oltean <olteanv@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Andy Shevchenko and committed by
David S. Miller
ab11393f 43332cf9

-3
-3
drivers/net/dsa/vitesse-vsc73xx-core.c
··· 1122 1122 vsc->gc.ngpio = 4; 1123 1123 vsc->gc.owner = THIS_MODULE; 1124 1124 vsc->gc.parent = vsc->dev; 1125 - #if IS_ENABLED(CONFIG_OF_GPIO) 1126 - vsc->gc.of_node = vsc->dev->of_node; 1127 - #endif 1128 1125 vsc->gc.base = -1; 1129 1126 vsc->gc.get = vsc73xx_gpio_get; 1130 1127 vsc->gc.set = vsc73xx_gpio_set;