]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
power: reset: drop unneeded dependencies on OF_GPIO
authorBartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Mon, 16 Mar 2026 09:45:28 +0000 (10:45 +0100)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Thu, 2 Apr 2026 22:40:09 +0000 (00:40 +0200)
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@oss.qualcomm.com>
Link: https://patch.msgid.link/20260316-gpio-of-kconfig-v2-8-de2f4b00a0e4@oss.qualcomm.com
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/reset/Kconfig

index f6c1bcbb57deff3568d6b1b326454add3b3bbf06..8af398b4e6f7fc5f2ecd92f11d03c43cdefe1ab6 100644 (file)
@@ -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.