From: Ben Hutchings Date: Sun, 1 Sep 2013 22:53:57 +0000 (+0100) Subject: hwrng: via - Add MODULE_DEVICE_TABLE X-Git-Tag: firefly_0821_release~176^2~5396^2~2 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=ff6f83fc9d44db09997937c3475d525a6866fbb4;p=firefly-linux-kernel-4.4.55.git hwrng: via - Add MODULE_DEVICE_TABLE via-rng currently isn't auto-loaded if built as a module. Signed-off-by: Ben Hutchings Signed-off-by: Herbert Xu --- diff --git a/drivers/char/hw_random/via-rng.c b/drivers/char/hw_random/via-rng.c index d0387a84eec1..e737772ad69a 100644 --- a/drivers/char/hw_random/via-rng.c +++ b/drivers/char/hw_random/via-rng.c @@ -29,6 +29,7 @@ #include #include #include +#include #include #include #include @@ -220,5 +221,11 @@ static void __exit mod_exit(void) module_init(mod_init); module_exit(mod_exit); +static struct x86_cpu_id via_rng_cpu_id[] = { + X86_FEATURE_MATCH(X86_FEATURE_XSTORE), + {} +}; + MODULE_DESCRIPTION("H/W RNG driver for VIA CPU with PadLock"); MODULE_LICENSE("GPL"); +MODULE_DEVICE_TABLE(x86cpu, via_rng_cpu_id);