Commit 855cc8b8 authored by William Breathitt Gray's avatar William Breathitt Gray Committed by Kleber Sacilotto de Souza

isa: Call isa_bus_init before dependent ISA bus drivers register

BugLink: https://bugs.launchpad.net/bugs/1878232

commit 32a5a0c0 upstream.

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: a5117ba7 ("[PATCH] Driver model: add ISA bus")
Cc: Rene Herman <rene.herman@keyaccess.nl>
Signed-off-by: default avatarWilliam Breathitt Gray <vilhelm.gray@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarIan May <ian.may@canonical.com>
Signed-off-by: default avatarKleber Sacilotto de Souza <kleber.souza@canonical.com>
parent 7d5ce024
...@@ -180,4 +180,4 @@ static int __init isa_bus_init(void) ...@@ -180,4 +180,4 @@ static int __init isa_bus_init(void)
return error; return error;
} }
device_initcall(isa_bus_init); postcore_initcall(isa_bus_init);
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