From: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Date: 2021-12-02 21:00:51
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>
---
drivers/net/dsa/vitesse-vsc73xx-core.c | 3 ---
1 file changed, 3 deletions(-)
From: Vladimir Oltean <olteanv@gmail.com> Date: 2021-12-02 21:13:06
On Thu, Dec 02, 2021 at 11:00:29PM +0200, Andy Shevchenko wrote:
quoted hunk
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>
---
drivers/net/dsa/vitesse-vsc73xx-core.c | 3 ---
1 file changed, 3 deletions(-)
@@ -1122,9 +1122,6 @@ static int vsc73xx_gpio_probe(struct vsc73xx *vsc)vsc->gc.ngpio=4;vsc->gc.owner=THIS_MODULE;vsc->gc.parent=vsc->dev;-#if IS_ENABLED(CONFIG_OF_GPIO)-vsc->gc.of_node=vsc->dev->of_node;-#endifvsc->gc.base=-1;vsc->gc.get=vsc73xx_gpio_get;vsc->gc.set=vsc73xx_gpio_set;
--
2.33.0
I'm in To: and everyone else is in Cc? I don't even have the hardware.
Adding Linus just in case, although the change seems correct.
Reviewed-by: Vladimir Oltean <olteanv@gmail.com>
Hello:
This patch was applied to netdev/net-next.git (master)
by David S. Miller [off-list ref]:
On Thu, 2 Dec 2021 23:00:29 +0200 you wrote:
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>
[...]