Skip to content

Commit e252e0e

Browse files
Mao WenanJiri Kosina
authored andcommitted
HID: u2fzero: fix compiling error in u2fzero_probe()
There is one compiling error in u2fzero_probe()->u2fzero_init_hwrng(), this is because HW_RANDOM is not set. drivers/hid/hid-u2fzero.o: In function `u2fzero_probe': hid-u2fzero.c:(.text+0xc70): undefined reference to `devm_hwrng_register' Fixes: 42337b9("HID: add driver for U2F Zero built-in LED and RNG") Reported-by: Hulk Robot <[email protected]> Signed-off-by: Mao Wenan <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
1 parent 42337b9 commit e252e0e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/hid/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1007,6 +1007,7 @@ config HID_U2FZERO
10071007
tristate "U2F Zero LED and RNG support"
10081008
depends on USB_HID
10091009
depends on LEDS_CLASS
1010+
depends on HW_RANDOM
10101011
help
10111012
Support for the LED of the U2F Zero device.
10121013

0 commit comments

Comments
 (0)