| .. | .. |
|---|
| 209 | 209 | out: |
|---|
| 210 | 210 | return err; |
|---|
| 211 | 211 | } |
|---|
| 212 | +module_init(mod_init); |
|---|
| 212 | 213 | |
|---|
| 213 | 214 | static void __exit mod_exit(void) |
|---|
| 214 | 215 | { |
|---|
| 215 | 216 | hwrng_unregister(&via_rng); |
|---|
| 216 | 217 | } |
|---|
| 217 | | - |
|---|
| 218 | | -module_init(mod_init); |
|---|
| 219 | 218 | module_exit(mod_exit); |
|---|
| 220 | 219 | |
|---|
| 221 | 220 | static struct x86_cpu_id __maybe_unused via_rng_cpu_id[] = { |
|---|
| 222 | | - X86_FEATURE_MATCH(X86_FEATURE_XSTORE), |
|---|
| 221 | + X86_MATCH_FEATURE(X86_FEATURE_XSTORE, NULL), |
|---|
| 223 | 222 | {} |
|---|
| 224 | 223 | }; |
|---|
| 224 | +MODULE_DEVICE_TABLE(x86cpu, via_rng_cpu_id); |
|---|
| 225 | 225 | |
|---|
| 226 | 226 | MODULE_DESCRIPTION("H/W RNG driver for VIA CPU with PadLock"); |
|---|
| 227 | 227 | MODULE_LICENSE("GPL"); |
|---|
| 228 | | -MODULE_DEVICE_TABLE(x86cpu, via_rng_cpu_id); |
|---|