Skip to contentSkip to conversation

net: ethernet: Drop unused of_gpio.h

PATCH Applied Peng Fan (OSS) 3 participants 3 messages Mar 20, 2025 – Mar 24, 2025

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

PATCH 1/1 net: ethernet: Drop unused of_gpio.h

From: Peng Fan <[email protected]>

of_gpio.h is deprecated. Since there is no of_gpio_x API, drop unused of_gpio.h. While at here, drop gpio.h and gpio/consumer.h if no user in driver.

---
 drivers/net/ethernet/cadence/macb_main.c | 3 ---
 drivers/net/ethernet/freescale/fec_ptp.c | 1 -
 drivers/net/ethernet/micrel/ks8851_spi.c | 2 --
 drivers/net/ethernet/smsc/smsc911x.c     | 1 -
 4 files changed, 7 deletions(-)
drivers/net/ethernet/cadence/macb_main.c +0 -3
index b5797c1ac0a4..1fe8ec37491b 100644
@@ -17,8 +17,6 @@
 #include <linux/slab.h>
 #include <linux/init.h>
 #include <linux/io.h>
-#include <linux/gpio.h>
-#include <linux/gpio/consumer.h>
 #include <linux/interrupt.h>
 #include <linux/netdevice.h>
 #include <linux/etherdevice.h>
@@ -26,7 +24,6 @@
 #include <linux/platform_device.h>
 #include <linux/phylink.h>
 #include <linux/of.h>
-#include <linux/of_gpio.h>
 #include <linux/of_mdio.h>
 #include <linux/of_net.h>
 #include <linux/ip.h>
drivers/net/ethernet/freescale/fec_ptp.c +0 -1
index fe4e7f99b6a3..876d90832596 100644
@@ -30,7 +30,6 @@
 #include <linux/phy.h>
 #include <linux/fec.h>
 #include <linux/of.h>
-#include <linux/of_gpio.h>
 #include <linux/of_net.h>
 
 #include "fec.h"
drivers/net/ethernet/micrel/ks8851_spi.c +0 -2
index 3062cc0f9199..c862b13b447a 100644
@@ -20,8 +20,6 @@
 #include <linux/regulator/consumer.h>
 
 #include <linux/spi/spi.h>
-#include <linux/gpio.h>
-#include <linux/of_gpio.h>
 #include <linux/of_net.h>
 
 #include "ks8851.h"
drivers/net/ethernet/smsc/smsc911x.c +0 -1
index f539813878f5..2e1106097965 100644
@@ -43,7 +43,6 @@
 #include <linux/smsc911x.h>
 #include <linux/device.h>
 #include <linux/of.h>
-#include <linux/of_gpio.h>
 #include <linux/of_net.h>
 #include <linux/acpi.h>
 #include <linux/pm_runtime.h>
Signature · 1 line
2.37.1
#2 lore raw
In reply to Peng Fan (OSS)
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 Thu, 20 Mar 2025 11:15:24 +0800 you wrote:

From: Peng Fan <[email protected]>

of_gpio.h is deprecated. Since there is no of_gpio_x API, drop unused of_gpio.h. While at here, drop gpio.h and gpio/consumer.h if no user in driver.

[...]

Here is the summary with links:
- [net-next] net: ethernet: Drop unused of_gpio.h

    https://git.kernel.org/netdev/net-next/c/b71f29272f5f

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html