Commit 56fb5fe9 authored by Michael Buesch's avatar Michael Buesch Committed by Linus Torvalds

[PATCH] Fix HWRNG built-in initcalls priority

This changes all HWRNG driver initcalls to module_init().  We must probe
the RNGs after the major kernel subsystems are already up and running (like
PCI).

This fixes Bug 7730.
http://bugzilla.kernel.org/show_bug.cgi?id=7730Signed-off-by: default avatarMichael Buesch <mb@bu3sch.de>
Cc: Jan Beulich <jbeulich@novell.com>
Cc: Jeff Garzik <jeff@garzik.org>
Cc: Greg KH <greg@kroah.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 9863be59
...@@ -144,7 +144,7 @@ static void __exit mod_exit(void) ...@@ -144,7 +144,7 @@ static void __exit mod_exit(void)
hwrng_unregister(&amd_rng); hwrng_unregister(&amd_rng);
} }
subsys_initcall(mod_init); module_init(mod_init);
module_exit(mod_exit); module_exit(mod_exit);
MODULE_AUTHOR("The Linux Kernel team"); MODULE_AUTHOR("The Linux Kernel team");
......
...@@ -125,7 +125,7 @@ static void __exit mod_exit(void) ...@@ -125,7 +125,7 @@ static void __exit mod_exit(void)
iounmap(mem); iounmap(mem);
} }
subsys_initcall(mod_init); module_init(mod_init);
module_exit(mod_exit); module_exit(mod_exit);
MODULE_DESCRIPTION("H/W RNG driver for AMD Geode LX CPUs"); MODULE_DESCRIPTION("H/W RNG driver for AMD Geode LX CPUs");
......
...@@ -378,7 +378,7 @@ static void __exit mod_exit(void) ...@@ -378,7 +378,7 @@ static void __exit mod_exit(void)
iounmap(mem); iounmap(mem);
} }
subsys_initcall(mod_init); module_init(mod_init);
module_exit(mod_exit); module_exit(mod_exit);
MODULE_DESCRIPTION("H/W RNG driver for Intel chipsets"); MODULE_DESCRIPTION("H/W RNG driver for Intel chipsets");
......
...@@ -64,7 +64,7 @@ static void __exit ixp4xx_rng_exit(void) ...@@ -64,7 +64,7 @@ static void __exit ixp4xx_rng_exit(void)
iounmap(rng_base); iounmap(rng_base);
} }
subsys_initcall(ixp4xx_rng_init); module_init(ixp4xx_rng_init);
module_exit(ixp4xx_rng_exit); module_exit(ixp4xx_rng_exit);
MODULE_AUTHOR("Deepak Saxena <dsaxena@plexity.net>"); MODULE_AUTHOR("Deepak Saxena <dsaxena@plexity.net>");
......
...@@ -176,7 +176,7 @@ static void __exit mod_exit(void) ...@@ -176,7 +176,7 @@ static void __exit mod_exit(void)
hwrng_unregister(&via_rng); hwrng_unregister(&via_rng);
} }
subsys_initcall(mod_init); module_init(mod_init);
module_exit(mod_exit); module_exit(mod_exit);
MODULE_DESCRIPTION("H/W RNG driver for VIA chipsets"); MODULE_DESCRIPTION("H/W RNG driver for VIA chipsets");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment