Skip to contentSkip to conversation

watchdog: convert the Kconfig dependency on OF_GPIO to OF

PATCH Applied Bartosz Golaszewski 2 participants 2 messages May 6 Watchdog device drivers

lore
Share & tools
lore
#0 lore raw

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
index dc78729ba2a5..ab1d5d6df5f3 100644
@@ -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
maintainer Applied
#1 lore raw
Quoted 8 lines · Bartosz Golaszewski

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.

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
index dc78729ba2a5..ab1d5d6df5f3 100644
@@ -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