summaryrefslogtreecommitdiffstats
path: root/drivers/hid
diff options
context:
space:
mode:
authorMao Wenan <maowenan@huawei.com>2019-04-13 21:44:59 +0800
committerJiri Kosina <jkosina@suse.cz>2019-04-15 11:04:14 +0200
commite252e0e0028167ea3d1eafa99c2ff9f62c444b0a (patch)
tree3f21bf2103a77d5930952ef170b4016b5512a130 /drivers/hid
parent42337b9d4d958daae266dc455a54e3b9f157862a (diff)
downloadlinux-e252e0e0028167ea3d1eafa99c2ff9f62c444b0a.tar.gz
linux-e252e0e0028167ea3d1eafa99c2ff9f62c444b0a.tar.bz2
linux-e252e0e0028167ea3d1eafa99c2ff9f62c444b0a.zip
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: 42337b9d4d958("HID: add driver for U2F Zero built-in LED and RNG") Reported-by: Hulk Robot <hulkci@huawei.com> Signed-off-by: Mao Wenan <maowenan@huawei.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid')
-rw-r--r--drivers/hid/Kconfig1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/hid/Kconfig b/drivers/hid/Kconfig
index b090d425ff22..a0c678d28af0 100644
--- a/drivers/hid/Kconfig
+++ b/drivers/hid/Kconfig
@@ -1007,6 +1007,7 @@ config HID_U2FZERO
tristate "U2F Zero LED and RNG support"
depends on USB_HID
depends on LEDS_CLASS
+ depends on HW_RANDOM
help
Support for the LED of the U2F Zero device.