Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

usb/misc: fix chaoskey build, needs HW_RANDOM

Fix build errors when HW_RANDOM is not enabled:

drivers/built-in.o: In function `chaoskey_disconnect':
chaoskey.c:(.text+0x5f3f00): undefined reference to `hwrng_unregister'
drivers/built-in.o: In function `chaoskey_probe':
chaoskey.c:(.text+0x5f42a6): undefined reference to `hwrng_register'

Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Randy Dunlap and committed by
Greg Kroah-Hartman
d9aab404 c6ab3aec

+1
+1
drivers/usb/misc/Kconfig
··· 258 258 259 259 config USB_CHAOSKEY 260 260 tristate "ChaosKey random number generator driver support" 261 + depends on HW_RANDOM 261 262 help 262 263 Say Y here if you want to connect an AltusMetrum ChaosKey to 263 264 your computer's USB port. The ChaosKey is a hardware random