Skip to contentSkip to conversation

net: phy: drop duplicated header include in mdio-device

PATCH Applied Maxime Chevallier 3 participants 3 messages Jul 15 – Jul 21

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

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
index a18263d5bb02..06151f207134 100644
@@ -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
#2 lore raw
In reply to Maxime Chevallier
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.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.

[...]

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