Skip to content

Commit 315d01d

Browse files
KAGA-KOKOsuryasaimadhu
authored andcommitted
hwrng: via_rng: Convert to new X86 CPU match macros
The new macro set has a consistent namespace and uses C99 initializers instead of the grufty C89 ones. Signed-off-by: Thomas Gleixner <[email protected]> Signed-off-by: Borislav Petkov <[email protected]> Reviewed-by: Greg Kroah-Hartman <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
1 parent f30cfac commit 315d01d

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

drivers/char/hw_random/via-rng.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -209,20 +209,19 @@ static int __init mod_init(void)
209209
out:
210210
return err;
211211
}
212+
module_init(mod_init);
212213

213214
static void __exit mod_exit(void)
214215
{
215216
hwrng_unregister(&via_rng);
216217
}
217-
218-
module_init(mod_init);
219218
module_exit(mod_exit);
220219

221220
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),
223222
{}
224223
};
224+
MODULE_DEVICE_TABLE(x86cpu, via_rng_cpu_id);
225225

226226
MODULE_DESCRIPTION("H/W RNG driver for VIA CPU with PadLock");
227227
MODULE_LICENSE("GPL");
228-
MODULE_DEVICE_TABLE(x86cpu, via_rng_cpu_id);

0 commit comments

Comments
 (0)