summaryrefslogtreecommitdiff
path: root/drivers/sysreset
diff options
context:
space:
mode:
authorMichal Simek <[email protected]>2023-07-04 14:05:13 +0200
committerTom Rini <[email protected]>2023-07-07 16:47:15 -0400
commit99a0532a2d09edac8d8cf59deb68e03f3275e494 (patch)
tree169b2d6887f6b9bd613b7d372cb241d78feb5a78 /drivers/sysreset
parent0f42f8995593570b0a0d0726cd1f021b5f90172f (diff)
sysreset: Change Kconfig GPIO dependency
DM_GPIO depends on GPIO to be enabled but select will cause that DM_GPIO is selected without GPIO which ends up in compilation error: undefined reference to `dm_gpio_set_value' undefined reference to `dm_gpio_get_value' undefined reference to `dm_gpio_free' undefined reference to `gpio_request_by_name' Signed-off-by: Michal Simek <[email protected]> [trini: Fix configs which had relied on these select's] Signed-off-by: Tom Rini <[email protected]>
Diffstat (limited to 'drivers/sysreset')
-rw-r--r--drivers/sysreset/Kconfig4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/sysreset/Kconfig b/drivers/sysreset/Kconfig
index 03f7fdd5978..bdbe2a95364 100644
--- a/drivers/sysreset/Kconfig
+++ b/drivers/sysreset/Kconfig
@@ -61,14 +61,14 @@ endif
config POWEROFF_GPIO
bool "Enable support for GPIO poweroff driver"
- select DM_GPIO
+ depends on DM_GPIO
help
Support for system poweroff using a GPIO pin. This can be used
for systems having a single GPIO to trigger a system poweroff.
config SYSRESET_GPIO
bool "Enable support for GPIO reset driver"
- select DM_GPIO
+ depends on DM_GPIO
help
Reset support via GPIO pin connected reset logic. This is used for
example on Microblaze where reset logic can be controlled via GPIO