[PATCH v2 8/9] power: reset: drop unneeded dependencies on OF_GPIO

From: Bartosz Golaszewski

Date: Mon Mar 16 2026 - 06:01:22 EST


OF_GPIO is selected automatically on all OF systems. Any symbols it
controls also provide stubs so there's really no reason to select it
explicitly. For Kconfig entries that have no other dependencies: convert
it to requiring OF to avoid new symbols popping up for everyone in make
config, for others just drop it altogether.

Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@xxxxxxxxxxxxxxxx>
---
drivers/power/reset/Kconfig | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/power/reset/Kconfig b/drivers/power/reset/Kconfig
index f6c1bcbb57deff3568d6b1b326454add3b3bbf06..8af398b4e6f7fc5f2ecd92f11d03c43cdefe1ab6 100644
--- a/drivers/power/reset/Kconfig
+++ b/drivers/power/reset/Kconfig
@@ -97,7 +97,7 @@ config POWER_RESET_GEMINI_POWEROFF

config POWER_RESET_GPIO
bool "GPIO power-off driver"
- depends on OF_GPIO
+ depends on OF
help
This driver supports turning off your board via a GPIO line.
If your board needs a GPIO high/low to power down, say Y and
@@ -105,7 +105,7 @@ config POWER_RESET_GPIO

config POWER_RESET_GPIO_RESTART
bool "GPIO restart driver"
- depends on OF_GPIO
+ depends on OF
help
This driver supports restarting your board via a GPIO line.
If your board needs a GPIO high/low to restart, say Y and
@@ -181,7 +181,7 @@ config POWER_RESET_PIIX4_POWEROFF

config POWER_RESET_LTC2952
bool "LTC2952 PowerPath power-off driver"
- depends on OF_GPIO
+ depends on OF
help
This driver supports an external powerdown trigger and board power
down via the LTC2952. Bindings are made in the device tree.
@@ -198,7 +198,7 @@ config POWER_RESET_MT6323

config POWER_RESET_QNAP
bool "QNAP power-off driver"
- depends on OF_GPIO && PLAT_ORION
+ depends on PLAT_ORION
help
This driver supports turning off QNAP NAS devices by sending
commands to the microcontroller which controls the main power.

--
2.47.3