Skip to contentSkip to conversation

net: stmmac: dwmac-rk: Remove unused of_gpio.h

PATCH Applied Andy Shevchenko 3 participants 3 messages Mar 13, 2024 – Mar 15, 2024

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

PATCH 1/1 net: stmmac: dwmac-rk: Remove unused of_gpio.h

of_gpio.h is deprecated and subject to remove.
The driver doesn't use it, simply remove the unused header.

---
 drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c | 2 --
 1 file changed, 2 deletions(-)
drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c +0 -2
index 382e8de1255d..7ae04d8d291c 100644
@@ -12,10 +12,8 @@
 #include <linux/clk.h>
 #include <linux/phy.h>
 #include <linux/of_net.h>
-#include <linux/gpio.h>
 #include <linux/module.h>
 #include <linux/of.h>
-#include <linux/of_gpio.h>
 #include <linux/platform_device.h>
 #include <linux/regulator/consumer.h>
 #include <linux/delay.h>
Signature · 1 line
2.43.0.rc1.1.gbec44491f096
Reviewed-by on v1 1/1
#1 lore raw

Hi,

Quoted 5 lines · Andy Shevchenko

of_gpio.h is deprecated and subject to remove.
The driver doesn't use it, simply remove the unused header.

---

-- Sebastian

Quoted 21 lines
 drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c | 2 --
 1 file changed, 2 deletions(-)
drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c +0 -2
index 382e8de1255d..7ae04d8d291c 100644
@@ -12,10 +12,8 @@
 #include <linux/clk.h>
 #include <linux/phy.h>
 #include <linux/of_net.h>
-#include <linux/gpio.h>
 #include <linux/module.h>
 #include <linux/of.h>
-#include <linux/of_gpio.h>
 #include <linux/platform_device.h>
 #include <linux/regulator/consumer.h>
 #include <linux/delay.h>
Signature · 1 line
2.43.0.rc1.1.gbec44491f096
#2 lore raw
In reply to Andy Shevchenko
This patch was applied to netdev/net-next.git (main) by David S. Miller <[email protected]>:

Hello:

This patch was applied to netdev/net-next.git (main) by David S. Miller <[email protected]>:

Quoted 7 lines · On Wed, 13 Mar 2024 16:00:57 +0200 you wrote:

of_gpio.h is deprecated and subject to remove.
The driver doesn't use it, simply remove the unused header.

---
 drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c | 2 --
 1 file changed, 2 deletions(-)

Here is the summary with links:
- [v1,1/1] net: stmmac: dwmac-rk: Remove unused of_gpio.h

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

You are awesome, thank you!

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