diff options
author | Michael Buesch <mb@bu3sch.de> | 2007-01-11 02:15:43 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.osdl.org> | 2007-01-11 21:18:21 -0500 |
commit | 56fb5fe9f16f630e3ee663c47c5aff26ac424d05 (patch) | |
tree | dee82831d60f11f2affc9ceeff2b6355770810a4 /drivers/char | |
parent | 9863be598ed068613996af8da71d9fd976a0ab2d (diff) |
[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=7730
Signed-off-by: Michael 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: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/char')
-rw-r--r-- | drivers/char/hw_random/amd-rng.c | 2 | ||||
-rw-r--r-- | drivers/char/hw_random/geode-rng.c | 2 | ||||
-rw-r--r-- | drivers/char/hw_random/intel-rng.c | 2 | ||||
-rw-r--r-- | drivers/char/hw_random/ixp4xx-rng.c | 2 | ||||
-rw-r--r-- | drivers/char/hw_random/via-rng.c | 2 |
5 files changed, 5 insertions, 5 deletions
diff --git a/drivers/char/hw_random/amd-rng.c b/drivers/char/hw_random/amd-rng.c index 71e4e0f3fd54..556fd81fa815 100644 --- a/drivers/char/hw_random/amd-rng.c +++ b/drivers/char/hw_random/amd-rng.c | |||
@@ -144,7 +144,7 @@ static void __exit mod_exit(void) | |||
144 | hwrng_unregister(&amd_rng); | 144 | hwrng_unregister(&amd_rng); |
145 | } | 145 | } |
146 | 146 | ||
147 | subsys_initcall(mod_init); | 147 | module_init(mod_init); |
148 | module_exit(mod_exit); | 148 | module_exit(mod_exit); |
149 | 149 | ||
150 | MODULE_AUTHOR("The Linux Kernel team"); | 150 | MODULE_AUTHOR("The Linux Kernel team"); |
diff --git a/drivers/char/hw_random/geode-rng.c b/drivers/char/hw_random/geode-rng.c index d37ced0d132b..8e8658dcd2e3 100644 --- a/drivers/char/hw_random/geode-rng.c +++ b/drivers/char/hw_random/geode-rng.c | |||
@@ -125,7 +125,7 @@ static void __exit mod_exit(void) | |||
125 | iounmap(mem); | 125 | iounmap(mem); |
126 | } | 126 | } |
127 | 127 | ||
128 | subsys_initcall(mod_init); | 128 | module_init(mod_init); |
129 | module_exit(mod_exit); | 129 | module_exit(mod_exit); |
130 | 130 | ||
131 | MODULE_DESCRIPTION("H/W RNG driver for AMD Geode LX CPUs"); | 131 | MODULE_DESCRIPTION("H/W RNG driver for AMD Geode LX CPUs"); |
diff --git a/drivers/char/hw_random/intel-rng.c b/drivers/char/hw_random/intel-rng.c index 154ce3e6b3c9..f22e78e3c70f 100644 --- a/drivers/char/hw_random/intel-rng.c +++ b/drivers/char/hw_random/intel-rng.c | |||
@@ -378,7 +378,7 @@ static void __exit mod_exit(void) | |||
378 | iounmap(mem); | 378 | iounmap(mem); |
379 | } | 379 | } |
380 | 380 | ||
381 | subsys_initcall(mod_init); | 381 | module_init(mod_init); |
382 | module_exit(mod_exit); | 382 | module_exit(mod_exit); |
383 | 383 | ||
384 | MODULE_DESCRIPTION("H/W RNG driver for Intel chipsets"); | 384 | MODULE_DESCRIPTION("H/W RNG driver for Intel chipsets"); |
diff --git a/drivers/char/hw_random/ixp4xx-rng.c b/drivers/char/hw_random/ixp4xx-rng.c index c9caff57db85..bab43ca32ac1 100644 --- a/drivers/char/hw_random/ixp4xx-rng.c +++ b/drivers/char/hw_random/ixp4xx-rng.c | |||
@@ -64,7 +64,7 @@ static void __exit ixp4xx_rng_exit(void) | |||
64 | iounmap(rng_base); | 64 | iounmap(rng_base); |
65 | } | 65 | } |
66 | 66 | ||
67 | subsys_initcall(ixp4xx_rng_init); | 67 | module_init(ixp4xx_rng_init); |
68 | module_exit(ixp4xx_rng_exit); | 68 | module_exit(ixp4xx_rng_exit); |
69 | 69 | ||
70 | MODULE_AUTHOR("Deepak Saxena <dsaxena@plexity.net>"); | 70 | MODULE_AUTHOR("Deepak Saxena <dsaxena@plexity.net>"); |
diff --git a/drivers/char/hw_random/via-rng.c b/drivers/char/hw_random/via-rng.c index 0e786b617bb8..9ebf84d18655 100644 --- a/drivers/char/hw_random/via-rng.c +++ b/drivers/char/hw_random/via-rng.c | |||
@@ -176,7 +176,7 @@ static void __exit mod_exit(void) | |||
176 | hwrng_unregister(&via_rng); | 176 | hwrng_unregister(&via_rng); |
177 | } | 177 | } |
178 | 178 | ||
179 | subsys_initcall(mod_init); | 179 | module_init(mod_init); |
180 | module_exit(mod_exit); | 180 | module_exit(mod_exit); |
181 | 181 | ||
182 | MODULE_DESCRIPTION("H/W RNG driver for VIA chipsets"); | 182 | MODULE_DESCRIPTION("H/W RNG driver for VIA chipsets"); |