net: ethernet: Drop unused of_gpio.h
Subsystems (6)
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
@@ -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
@@ -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
@@ -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
@@ -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
Quoted 7 lines · Peng Fan (OSS)
From: Peng Fan <[email protected]>
of_gpio.his deprecated. Since there is noof_gpio_xAPI, drop unusedof_gpio.h. While at here, dropgpio.handgpio/consumer.hif no user in driver.Signed-off-by Peng Fan <[email protected]>
net-next.
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 Thu, 20 Mar 2025 11:15:24 +0800 you wrote:
From: Peng Fan <[email protected]>
of_gpio.his deprecated. Since there is noof_gpio_xAPI, drop unusedof_gpio.h. While at here, dropgpio.handgpio/consumer.hif no user in driver.Signed-off-by Peng Fan <[email protected]>[...]
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