diff options
author | Marek Behún <kabel@kernel.org> | 2024-07-19 10:57:53 +0200 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2024-08-07 14:43:54 +0200 |
commit | 019f87f1ef967c5a5b263f21ad100f46c874505a (patch) | |
tree | d568ca97b53276a18f51e46ef1ba62132c8390b6 /drivers/platform/cznic/Makefile | |
parent | 8400291e289ee6b2bf9779ff1c83a291501f017b (diff) | |
download | lwn-019f87f1ef967c5a5b263f21ad100f46c874505a.tar.gz lwn-019f87f1ef967c5a5b263f21ad100f46c874505a.zip |
platform: cznic: turris-omnia-mcu: Make watchdog code optional
Make the watchdog part of the driver optional, under a boolean config
option. Move the dependency to WATCHDOG to this new option, and change
the WATCHDOG_CORE dependency to selection, as is done in most watchdog
drivers.
This makes the turris-omnia-mcu driver available for compilation even if
WATCHDOG is disabled.
Fixes: ed46f1f7731d ("platform: cznic: turris-omnia-mcu: fix Kconfig dependencies")
Signed-off-by: Marek Behún <kabel@kernel.org>
Link: https://lore.kernel.org/r/20240719085756.30598-2-kabel@kernel.org
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'drivers/platform/cznic/Makefile')
-rw-r--r-- | drivers/platform/cznic/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/platform/cznic/Makefile b/drivers/platform/cznic/Makefile index eae4c6b341ff..7599b4835056 100644 --- a/drivers/platform/cznic/Makefile +++ b/drivers/platform/cznic/Makefile @@ -5,4 +5,4 @@ turris-omnia-mcu-y := turris-omnia-mcu-base.o turris-omnia-mcu-y += turris-omnia-mcu-gpio.o turris-omnia-mcu-y += turris-omnia-mcu-sys-off-wakeup.o turris-omnia-mcu-y += turris-omnia-mcu-trng.o -turris-omnia-mcu-y += turris-omnia-mcu-watchdog.o +turris-omnia-mcu-$(CONFIG_TURRIS_OMNIA_MCU_WATCHDOG) += turris-omnia-mcu-watchdog.o |