Skip to content

Commit b97acde

Browse files
committed
platform: cznic: turris-omnia-mcu: fix HW_RANDOM dependency
There is still a build failure when the rwrng support is in a loadable module but the mcu driver is built-in: arm-linux-gnueabi-ld: drivers/platform/cznic/turris-omnia-mcu-trng.o: in function `omnia_mcu_register_trng': turris-omnia-mcu-trng.c:(.text.omnia_mcu_register_trng+0x11c): undefined reference to `devm_hwrng_register' Change the dependency to explicitly disallow the broken configuration. Fixes: 41bb142 ("platform: cznic: turris-omnia-mcu: Add support for MCU provided TRNG") Reviewed-by: Marek Behún <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Arnd Bergmann <[email protected]>
1 parent 2650fd8 commit b97acde

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/platform/cznic/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ config TURRIS_OMNIA_MCU_TRNG
7070
bool "Turris Omnia MCU true random number generator"
7171
default y
7272
depends on TURRIS_OMNIA_MCU_GPIO
73-
depends on HW_RANDOM
73+
depends on HW_RANDOM=y || HW_RANDOM=TURRIS_OMNIA_MCU
7474
help
7575
Say Y here to add support for the true random number generator
7676
provided by CZ.NIC's Turris Omnia MCU.

0 commit comments

Comments
 (0)