watchdog: convert the Kconfig dependency on OF_GPIO to OF

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. We could simply remove the dependency but in order to avoid
a new symbol popping up for everyone in make config - just convert it to
requiring CONFIG_OF.

Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Link: https://lore.kernel.org/r/20260506081600.4921-1-bartosz.golaszewski@oss.qualcomm.com
[groeck: Resolved conflict; updated dependencies to require OF _or_ ACPI]
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
This commit is contained in:
Bartosz Golaszewski 2026-05-06 10:16:00 +02:00 committed by Guenter Roeck
parent 550c3bcdda
commit 63e07a8ecb

View File

@ -250,7 +250,7 @@ config DA9062_WATCHDOG
config GPIO_WATCHDOG
tristate "Watchdog device controlled through GPIO-line"
depends on (ACPI && GPIOLIB) || OF_GPIO
depends on GPIOLIB && (ACPI || OF)
select WATCHDOG_CORE
help
If you say yes here you get support for watchdog device