diff options
author | William Breathitt Gray <vilhelm.gray@gmail.com> | 2016-05-11 17:01:40 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-06-17 23:47:11 -0400 |
commit | 32a5a0c047343b11f581f663a2309cf43d13466f (patch) | |
tree | e7c051aad9153c7ecbb15130db019aca9d1ce201 | |
parent | b87b8ff760d51b33b4e23d7f3a42ded55a668735 (diff) |
isa: Call isa_bus_init before dependent ISA bus drivers register
The isa_bus_init function must be called before drivers which utilize
the ISA bus driver are registered. A race condition for initilization
exists if device_initcall is used (the isa_bus_init callback is placed
in the same initcall level as dependent drivers which use module_init).
This patch ensures that isa_bus_init is called first by utilizing
postcore_initcall in favor of device_initcall.
Fixes: a5117ba7da37 ("[PATCH] Driver model: add ISA bus")
Cc: Rene Herman <rene.herman@keyaccess.nl>
Signed-off-by: William Breathitt Gray <vilhelm.gray@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/base/isa.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/base/isa.c b/drivers/base/isa.c index 91dba65d7264..cd6ccdcf9df0 100644 --- a/drivers/base/isa.c +++ b/drivers/base/isa.c | |||
@@ -180,4 +180,4 @@ static int __init isa_bus_init(void) | |||
180 | return error; | 180 | return error; |
181 | } | 181 | } |
182 | 182 | ||
183 | device_initcall(isa_bus_init); | 183 | postcore_initcall(isa_bus_init); |