watchdog: convert the Kconfig dependency on OF_GPIO to OF
PATCH v3 1/1 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.
---
Changes in v3:
- Send the watchdog patch separately so that it can be picked up for v7.2
- Link to v2: https://patch.msgid.link/[email protected]
Changes in v2:
- Make gpio-watchdog depend on OF && GPIOLIB
- Drop picked up patches
- Link to v1: https://patch.msgid.link/[email protected]
drivers/watchdog/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/watchdog/Kconfig +1 -1
@@ -250,7 +250,7 @@ config DA9062_WATCHDOG config GPIO_WATCHDOG tristate "Watchdog device controlled through GPIO-line" - depends on OF_GPIO + depends on OF && GPIOLIB select WATCHDOG_CORE help If you say yes here you get support for watchdog device
Signature · 1 line
2.47.3
Quoted 8 lines · Bartosz Golaszewski
OF_GPIOis 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 requiringCONFIG_OF.Reviewed-by Guenter Roeck <[email protected]>Signed-off-by Bartosz Golaszewski <[email protected]>
Applied to my watchdog-next branch after resolving conflicts. Dependencis are now
depends on GPIOLIB && (ACPI || OF)
Thanks,
Guenter
Quoted 26 lines
---
Changes in v3:
- Send the watchdog patch separately so that it can be picked up for v7.2
- Link to v2: https://patch.msgid.link/[email protected]Changes in v2:
- Make gpio-watchdog depend on OF && GPIOLIB
- Drop picked up patches
- Link to v1: https://patch.msgid.link/[email protected]drivers/watchdog/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/watchdog/Kconfig +1
-1@@ -250,7 +250,7 @@ config DA9062_WATCHDOG config GPIO_WATCHDOG tristate "Watchdog device controlled through GPIO-line" - depends on OF_GPIO + depends on OF && GPIOLIB select WATCHDOG_CORE help If you say yes here you get support for watchdog device