dsa: lan9303: Remove stray gpiod_unexport() call
Subsystems (3)
PATCH 1/1 dsa: lan9303: Remove stray gpiod_unexport() call
There is no gpiod_export() and gpiod_unexport() looks pretty much stray. The gpiod_export() and gpiod_unexport() shouldn't be used in the code, GPIO sysfs is deprecated. That said, simply drop the stray call.
--- drivers/net/dsa/lan9303-core.c | 1 - 1 file changed, 1 deletion(-)
drivers/net/dsa/lan9303-core.c +0 -1
@@ -1462,7 +1462,6 @@ int lan9303_remove(struct lan9303 *chip)/* assert reset to the whole device to prevent it from doing anything */ gpiod_set_value_cansleep (chip->reset_gpio,1 ); -gpiod_unexport (chip->reset_gpio);return 0 ; }
Signature · 1 line
2.40.0.1.gaa8946217a0b
Quoted 5 lines · Andy Shevchenko
There is no
gpiod_export()andgpiod_unexport()looks pretty much stray. Thegpiod_export()andgpiod_unexport()shouldn't be used in the code, GPIO sysfs is deprecated. That said, simply drop the stray call.Signed-off-by Andy Shevchenko <[email protected]>
Andrew
This patch was applied to netdev/net-next.git (main) by Paolo Abeni <[email protected]>:
Hello:
This patch was applied to netdev/net-next.git (main) by Paolo Abeni <[email protected]>:
Quoted 8 lines · On Sun, 28 May 2023 17:25:31 +0300 you wrote:
There is no
gpiod_export()andgpiod_unexport()looks pretty much stray. Thegpiod_export()andgpiod_unexport()shouldn't be used in the code, GPIO sysfs is deprecated. That said, simply drop the stray call.Signed-off-by Andy Shevchenko <[email protected]>--- drivers/net/dsa/lan9303-core.c | 1 - 1 file changed, 1 deletion(-)
Here is the summary with links:
- [net-next,v1,1/1] dsa: lan9303: Remove stray gpiod_unexport() call
https://git.kernel.org/netdev/net-next/c/3ea3c9cff7f9
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html