net: phy: drop duplicated header include in mdio-device
Subsystems (3)
PATCH 1/1 net: phy: drop duplicated header include in mdio-device
During a tree-wide gpio include cleanup, the linux/gpio.h include was replaced with linux/gpio/consumer.h.
mdio-device.c was already including that header, resulting in a duplicated inclusion. Let's drop it.
---
Yet another small cleanup while looking at bus-scan improvements. If I find more I'll group them in a dedicated cleanup series, but I'll likely not look at this stuff in the coming days so I might as well send this one now, sorry for the low-value churn...
drivers/net/phy/mdio_device.c | 1 - 1 file changed, 1 deletion(-)
drivers/net/phy/mdio_device.c +0 -1
@@ -9,7 +9,6 @@#include <linux/delay.h> #include <linux/errno.h> #include <linux/gpio/consumer.h> -#include <linux/gpio/consumer.h> #include <linux/init.h> #include <linux/interrupt.h> #include <linux/kernel.h>
Signature · 1 line
2.55.0
Quoted 7 lines · Maxime Chevallier
During a tree-wide gpio include cleanup, the
linux/gpio.hinclude was replaced withlinux/gpio/consumer.h.
mdio-device.cwas already including that header, resulting in a duplicated inclusion. Let's drop it.Signed-off-by Maxime Chevallier <[email protected]>
Andrew
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:
Hello:
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:
Quoted 9 lines · On Wed, 15 Jul 2026 22:12:12 +0200 you wrote:
During a tree-wide gpio include cleanup, the
linux/gpio.hinclude was replaced withlinux/gpio/consumer.h.
mdio-device.cwas already including that header, resulting in a duplicated inclusion. Let's drop it.Signed-off-by Maxime Chevallier <[email protected]>[...]
Here is the summary with links:
- [net-next] net: phy: drop duplicated header include in mdio-device
https://git.kernel.org/netdev/net-next/c/7e7bd5158e98
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html