Skip to content

Commit 0629c33

Browse files
Bartosz Golaszewskisre
authored andcommitted
power: reset: drop unneeded dependencies on OF_GPIO
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>
1 parent be353c6 commit 0629c33

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

drivers/power/reset/Kconfig

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,15 +97,15 @@ config POWER_RESET_GEMINI_POWEROFF
9797

9898
config POWER_RESET_GPIO
9999
bool "GPIO power-off driver"
100-
depends on OF_GPIO
100+
depends on OF
101101
help
102102
This driver supports turning off your board via a GPIO line.
103103
If your board needs a GPIO high/low to power down, say Y and
104104
create a binding in your devicetree.
105105

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

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

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

0 commit comments

Comments
 (0)