mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-24 04:34:08 +08:00
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>
This commit is contained in:
parent
77dc111f6d
commit
ed46f1f773
@ -18,11 +18,11 @@ config TURRIS_OMNIA_MCU
|
|||||||
depends on I2C
|
depends on I2C
|
||||||
depends on OF
|
depends on OF
|
||||||
depends on WATCHDOG
|
depends on WATCHDOG
|
||||||
select GPIOLIB
|
depends on GPIOLIB
|
||||||
|
depends on HW_RANDOM
|
||||||
|
depends on RTC_CLASS
|
||||||
|
depends on WATCHDOG_CORE
|
||||||
select GPIOLIB_IRQCHIP
|
select GPIOLIB_IRQCHIP
|
||||||
select HW_RANDOM
|
|
||||||
select RTC_CLASS
|
|
||||||
select WATCHDOG_CORE
|
|
||||||
help
|
help
|
||||||
Say Y here to add support for the features implemented by the
|
Say Y here to add support for the features implemented by the
|
||||||
microcontroller on the CZ.NIC's Turris Omnia SOHO router.
|
microcontroller on the CZ.NIC's Turris Omnia SOHO router.
|
||||||
|
Loading…
Reference in New Issue
Block a user