]> www.infradead.org Git - users/jedix/linux-maple.git/commit
platform: cznic: turris-omnia-mcu: Make watchdog code optional
authorMarek BehĂșn <kabel@kernel.org>
Fri, 19 Jul 2024 08:57:53 +0000 (10:57 +0200)
committerArnd Bergmann <arnd@arndb.de>
Wed, 7 Aug 2024 12:43:54 +0000 (14:43 +0200)
commit019f87f1ef967c5a5b263f21ad100f46c874505a
treed568ca97b53276a18f51e46ef1ba62132c8390b6
parent8400291e289ee6b2bf9779ff1c83a291501f017b
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>
drivers/platform/cznic/Kconfig
drivers/platform/cznic/Makefile
drivers/platform/cznic/turris-omnia-mcu.h