]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
treewide: remove of_gpio.h 20076/head
authorRosen Penev <rosenp@gmail.com>
Thu, 18 Sep 2025 01:44:21 +0000 (18:44 -0700)
committerRobert Marko <robimarko@gmail.com>
Sat, 20 Sep 2025 10:47:23 +0000 (12:47 +0200)
of_gpio.h is deprecated in upstream Linux and may be removed soon. Get
ahead of things and remove it. Most of these drivers already use the
gpiod API.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/20076
Signed-off-by: Robert Marko <robimarko@gmail.com>
package/kernel/gpio-button-hotplug/src/gpio-button-hotplug.c
package/kernel/ubnt-ledbar/src/leds-ubnt-ledbar.c
target/linux/ath79/files/drivers/gpio/gpio-latch-mikrotik.c
target/linux/ath79/files/drivers/gpio/gpio-rb91x-key.c
target/linux/ath79/patches-6.12/700-phy-add-ath79-usb-phys.patch
target/linux/bmips/files/drivers/pci/controller/pci-bcm6348.c
target/linux/bmips/files/drivers/pci/controller/pcie-bcm6318.c
target/linux/bmips/files/drivers/pci/controller/pcie-bcm6328.c
target/linux/ramips/files/drivers/net/ethernet/ralink/mtk_eth_soc.c
target/linux/siflower/files-6.6/drivers/pci/controller/dwc/pcie-sf21.c

index 75f358a208e9d1a5089b3b5eb703a20b3935dcfa..0c16f34b0d728995ba3a31f7053fe6788e3f4174 100644 (file)
@@ -25,8 +25,8 @@
 #include <linux/input.h>
 #include <linux/interrupt.h>
 #include <linux/platform_device.h>
-#include <linux/of_gpio.h>
 #include <linux/of_irq.h>
+#include <linux/gpio.h>
 #include <linux/gpio_keys.h>
 #include <linux/gpio/consumer.h>
 
index c36a74779c56cf91680e0d2542d80b75c6775614..c908cea0c8a6ec458ed6fed75d5a92e0715a8d71 100644 (file)
@@ -7,7 +7,6 @@
 #include <linux/module.h>
 #include <linux/mutex.h>
 #include <linux/of.h>
-#include <linux/of_gpio.h>
 #include <linux/gpio/consumer.h>
 
 /**
index a0759fe9e37172306cf1e697f3487be8850a3bd8..05bd1fa6046c470b00bb0908ac96eef44bba11f9 100644 (file)
@@ -13,7 +13,6 @@
 #include <linux/gpio/driver.h>
 #include <linux/platform_device.h>
 #include <linux/of_platform.h>
-#include <linux/of_gpio.h>
 
 #define GPIO_LATCH_DRIVER_NAME  "gpio-latch-mikrotik"
 #define GPIO_LATCH_LINES 9
index d83b690afeccfdbac966dad1238e16625c3b991d..3954cceccd02478d48059ac49e0519e1a629dd39 100644 (file)
@@ -20,7 +20,6 @@
 #include <linux/gpio/driver.h>
 #include <linux/platform_device.h>
 #include <linux/of_platform.h>
-#include <linux/of_gpio.h>
 #include <linux/delay.h>
 
 #define GPIO_RB91X_KEY_DRIVER_NAME  "gpio-rb91x-key"
index 1c1b2f2ca1ba81f56019ea7c73841dd89e574bca..74731f069acedf93d8daf013588deff0cd4d05da 100644 (file)
@@ -51,7 +51,7 @@ Signed-off-by: John Crispin <john@phrozen.org>
  obj-$(CONFIG_PHY_LPC18XX_USB_OTG)     += phy-lpc18xx-usb-otg.o
 --- /dev/null
 +++ b/drivers/phy/phy-ar7100-usb.c
-@@ -0,0 +1,117 @@
+@@ -0,0 +1,115 @@
 +/*
 + * Copyright (C) 2018 John Crispin <john@phrozen.org>
 + *
@@ -66,7 +66,6 @@ Signed-off-by: John Crispin <john@phrozen.org>
 +#include <linux/phy/phy.h>
 +#include <linux/delay.h>
 +#include <linux/reset.h>
-+#include <linux/of_gpio.h>
 +
 +#include <asm/mach-ath79/ath79.h>
 +#include <asm/mach-ath79/ar71xx_regs.h>
@@ -77,7 +76,6 @@ Signed-off-by: John Crispin <john@phrozen.org>
 +      struct reset_control    *rst_ohci_dll;
 +      void __iomem            *io_base;
 +      struct phy              *phy;
-+      int                     gpio;
 +};
 +
 +static int ar7100_usb_phy_power_off(struct phy *phy)
@@ -171,7 +169,7 @@ Signed-off-by: John Crispin <john@phrozen.org>
 +MODULE_LICENSE("GPL");
 --- /dev/null
 +++ b/drivers/phy/phy-ar7200-usb.c
-@@ -0,0 +1,111 @@
+@@ -0,0 +1,109 @@
 +/*
 + * Copyright (C) 2015 Alban Bedel <albeu@free.fr>
 + *
@@ -185,14 +183,12 @@ Signed-off-by: John Crispin <john@phrozen.org>
 +#include <linux/platform_device.h>
 +#include <linux/phy/phy.h>
 +#include <linux/reset.h>
-+#include <linux/of_gpio.h>
 +
 +struct ar7200_usb_phy {
 +      struct reset_control    *rst_phy;
 +      struct reset_control    *rst_phy_analog;
 +      struct reset_control    *suspend_override;
 +      struct phy              *phy;
-+      int                     gpio;
 +};
 +
 +static int ar7200_usb_phy_power_on(struct phy *phy)
index c9dc02915ec4c0986a96bacb63d5b38317536fd1..2ced4bc0e800a9bf68fb5c044da6c7a76763f3fb 100644 (file)
@@ -15,7 +15,6 @@
 #include <linux/mm.h>
 #include <linux/module.h>
 #include <linux/of_address.h>
-#include <linux/of_gpio.h>
 #include <linux/of_irq.h>
 #include <linux/of_pci.h>
 #include <linux/of_platform.h>
index 265cd0d181536ec3f793e9d25edae23be5cc150c..cf0762911ff73f2e5caeac8a0df0864e0c816c21 100644 (file)
@@ -13,7 +13,6 @@
 #include <linux/kernel.h>
 #include <linux/mm.h>
 #include <linux/module.h>
-#include <linux/of_gpio.h>
 #include <linux/of_irq.h>
 #include <linux/of_pci.h>
 #include <linux/of_platform.h>
index 6111fcc9b5a99b1e0b701eaf2e0bbace438beeca..dee52860d9e67a9e3d4007c326edb897e47ed5a2 100644 (file)
@@ -14,7 +14,6 @@
 #include <linux/mfd/syscon.h>
 #include <linux/mm.h>
 #include <linux/module.h>
-#include <linux/of_gpio.h>
 #include <linux/of_irq.h>
 #include <linux/of_pci.h>
 #include <linux/of_platform.h>
index 9bf486381fd7877411df42d42f2a29288f9e6847..8e1e6f5560899e67138cd80cb89065a5bb093e36 100644 (file)
@@ -32,7 +32,6 @@
 #include <linux/bug.h>
 #include <linux/netfilter.h>
 #include <net/netfilter/nf_flow_table.h>
-#include <linux/of_gpio.h>
 #include <linux/gpio.h>
 #include <linux/gpio/consumer.h>
 
index 50be5058c754ef1c472a263694dca596edaca277..bcebe8bfad865aeb7588bfb007f42f575682acdd 100644 (file)
@@ -13,7 +13,6 @@
 #include <linux/kernel.h>
 #include <linux/mfd/syscon.h>
 #include <linux/module.h>
-#include <linux/of_gpio.h>
 #include <linux/of_device.h>
 #include <linux/of_address.h>
 #include <linux/pci.h>