diff mbox series

[2/2] platform: cznic: turris-omnia-mcu: Depend on WATCHDOG

Message ID 20240708114002.4285-3-kabel@kernel.org (mailing list archive)
State Accepted
Commit dc3c836f9b0f1e615e5143a2afd542fc1162cd86
Headers show
Series Fixes for turris-omnia-mcu | expand

Commit Message

Marek BehĂșn July 8, 2024, 11:40 a.m. UTC
Add depend on WATCHDOG, otherwise modpost fails with
  ERROR: modpost: "watchdog_init_timeout" [drivers/platform/cznic/turris-omnia-mcu.ko] undefined!
  ERROR: modpost: "devm_watchdog_register_device" [drivers/platform/cznic/turris-omnia-mcu.ko] undefined!

Fixes: ab89fb5fb92c ("platform: cznic: turris-omnia-mcu: Add support for MCU watchdog")
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202407040711.g19y3cWq-lkp@intel.com/
Signed-off-by: Marek BehĂșn <kabel@kernel.org>
---
 drivers/platform/cznic/Kconfig | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/drivers/platform/cznic/Kconfig b/drivers/platform/cznic/Kconfig
index 8992f7b87223..2a5235cf6844 100644
--- a/drivers/platform/cznic/Kconfig
+++ b/drivers/platform/cznic/Kconfig
@@ -17,6 +17,7 @@  config TURRIS_OMNIA_MCU
 	depends on MACH_ARMADA_38X || COMPILE_TEST
 	depends on I2C
 	depends on OF
+	depends on WATCHDOG
 	select GPIOLIB
 	select GPIOLIB_IRQCHIP
 	select HW_RANDOM