Skip to contentSkip to conversation

isa: Call isa_bus_init before dependent ISA bus drivers register

PATCH New William Breathitt Gray 1 participant 1 message May 11, 2016

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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 <[email protected]>
---
 drivers/base/isa.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/base/isa.c +1 -1
index 91dba65d..cd6ccdc 100644
@@ -180,4 +180,4 @@ static int __init isa_bus_init(void)
 	return error;
 }
 
-device_initcall(isa_bus_init);
+postcore_initcall(isa_bus_init);
Signature · 1 line
2.7.3