diff options
author | Ben Hutchings <ben@decadent.org.uk> | 2013-09-01 18:53:57 -0400 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2013-09-02 06:32:59 -0400 |
commit | ff6f83fc9d44db09997937c3475d525a6866fbb4 (patch) | |
tree | 102e363915effec42c96e93a0241eb19291a71ac /drivers/char/hw_random | |
parent | 06e710bd5faa886e9b5d032d375761de28fcef54 (diff) |
hwrng: via - Add MODULE_DEVICE_TABLE
via-rng currently isn't auto-loaded if built as a module.
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/char/hw_random')
-rw-r--r-- | drivers/char/hw_random/via-rng.c | 7 |
1 files changed, 7 insertions, 0 deletions
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 @@ | |||
29 | #include <linux/kernel.h> | 29 | #include <linux/kernel.h> |
30 | #include <linux/hw_random.h> | 30 | #include <linux/hw_random.h> |
31 | #include <linux/delay.h> | 31 | #include <linux/delay.h> |
32 | #include <asm/cpu_device_id.h> | ||
32 | #include <asm/io.h> | 33 | #include <asm/io.h> |
33 | #include <asm/msr.h> | 34 | #include <asm/msr.h> |
34 | #include <asm/cpufeature.h> | 35 | #include <asm/cpufeature.h> |
@@ -220,5 +221,11 @@ static void __exit mod_exit(void) | |||
220 | module_init(mod_init); | 221 | module_init(mod_init); |
221 | module_exit(mod_exit); | 222 | module_exit(mod_exit); |
222 | 223 | ||
224 | static struct x86_cpu_id via_rng_cpu_id[] = { | ||
225 | X86_FEATURE_MATCH(X86_FEATURE_XSTORE), | ||
226 | {} | ||
227 | }; | ||
228 | |||
223 | MODULE_DESCRIPTION("H/W RNG driver for VIA CPU with PadLock"); | 229 | MODULE_DESCRIPTION("H/W RNG driver for VIA CPU with PadLock"); |
224 | MODULE_LICENSE("GPL"); | 230 | MODULE_LICENSE("GPL"); |
231 | MODULE_DEVICE_TABLE(x86cpu, via_rng_cpu_id); | ||