mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
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: a5117ba7da ("[PATCH] Driver model: add ISA bus")
Cc: Rene Herman <[email protected]>
Signed-off-by: William Breathitt Gray <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
b87b8ff760
commit
32a5a0c047
1 changed files with 1 additions and 1 deletions
|
|
@ -180,4 +180,4 @@ static int __init isa_bus_init(void)
|
|||
return error;
|
||||
}
|
||||
|
||||
device_initcall(isa_bus_init);
|
||||
postcore_initcall(isa_bus_init);
|
||||
|
|
|
|||
Loading…
Reference in a new issue