Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

hwrng: core - explicit ordering of initcalls

hw-random device drivers depend on the hw-random core being
initialized. Make this ordering explicit, also for the case
these drivers are built-in. As the core itself depends on
misc_register() which is set up at subsys_initcall time,
advance the initialization of the core (only) to the
fs_initcall() level.

Cc: Matt Mackall <mpm@selenic.com>
Cc: Herbert Xu <herbert@gondor.apana.org.au>
Cc: Jason A. Donenfeld <Jason@zx2c4.com>
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

authored by

Dominik Brodowski and committed by
Herbert Xu
26a03981 1c4cafd1

+1 -1
+1 -1
drivers/char/hw_random/core.c
··· 638 638 unregister_miscdev(); 639 639 } 640 640 641 - module_init(hwrng_modinit); 641 + fs_initcall(hwrng_modinit); /* depends on misc_register() */ 642 642 module_exit(hwrng_modexit); 643 643 644 644 MODULE_DESCRIPTION("H/W Random Number Generator (RNG) driver");