linux/drivers/platform/cznic
Arnd Bergmann ed46f1f773 platform: cznic: turris-omnia-mcu: fix Kconfig dependencies
The newly added driver causes a Kconfig warning:

WARNING: unmet direct dependencies detected for RTC_CLASS
  Depends on [n]: !S390 [=y]
  Selected by [m]:
  - TURRIS_OMNIA_MCU [=m] && CZNIC_PLATFORMS [=y] && (MACH_ARMADA_38X || COMPILE_TEST [=y]) && I2C [=m] && OF [=y] && WATCHDOG [=y]

The problem here is that it selects entire subsystems, which normal
device drivers should not do. Changes all of these to 'depends on'
instead.

Fixes: dfa556e45a ("platform: cznic: turris-omnia-mcu: Add support for MCU connected GPIOs")
Fixes: 90e700fd12 ("platform: cznic: turris-omnia-mcu: Add support for poweroff and wakeup")
Fixes: ab89fb5fb9 ("platform: cznic: turris-omnia-mcu: Add support for MCU watchdog")
Fixes: 41bb142a40 ("platform: cznic: turris-omnia-mcu: Add support for MCU provided TRNG")
Reported-by: Nathan Chancellor <nathan@kernel.org>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
2024-07-15 08:08:58 +02:00
..
Kconfig platform: cznic: turris-omnia-mcu: fix Kconfig dependencies 2024-07-15 08:08:58 +02:00
Makefile platform: cznic: turris-omnia-mcu: Add support for MCU provided TRNG 2024-07-01 15:46:37 +02:00
turris-omnia-mcu-base.c platform: cznic: turris-omnia-mcu: Add support for MCU provided TRNG 2024-07-01 15:46:37 +02:00
turris-omnia-mcu-gpio.c platform: cznic: turris-omnia-mcu: Add support for MCU provided TRNG 2024-07-01 15:46:37 +02:00
turris-omnia-mcu-sys-off-wakeup.c platform: cznic: turris-omnia-mcu: Add support for poweroff and wakeup 2024-07-01 15:46:37 +02:00
turris-omnia-mcu-trng.c platform: cznic: turris-omnia-mcu: Add support for MCU provided TRNG 2024-07-01 15:46:37 +02:00
turris-omnia-mcu-watchdog.c platform: cznic: turris-omnia-mcu: Add support for MCU watchdog 2024-07-01 15:46:37 +02:00
turris-omnia-mcu.h platform: cznic: turris-omnia-mcu: Add support for MCU provided TRNG 2024-07-01 15:46:37 +02:00