]> git.baikalelectronics.ru Git - kernel.git/commit
isa: Call isa_bus_init before dependent ISA bus drivers register
authorWilliam Breathitt Gray <vilhelm.gray@gmail.com>
Wed, 11 May 2016 21:01:40 +0000 (17:01 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 18 Jun 2016 03:47:11 +0000 (20:47 -0700)
commitdd1b28e9399bf6577c41906e46c2c9690bdd1941
treee7c051aad9153c7ecbb15130db019aca9d1ce201
parent38773fc5b0dad9b9d5dc807669580f1e7ddd95ea
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: cbe53b712430 ("[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>
drivers/base/isa.c