diff options
author | Patrick Mochel <mochel@osdl.org> | 2003-03-03 22:13:44 -0600 |
---|---|---|
committer | Patrick Mochel <mochel@osdl.org> | 2003-03-03 22:13:44 -0600 |
commit | fa0aa7cc093960f4ce98190954d9a4d9c5125619 (patch) | |
tree | 876f264a065da01c0f92d10f35fa3575fb093f77 /init | |
parent | 0a6bca96721d9398cff3d10883dd62769bfec68b (diff) | |
download | history-fa0aa7cc093960f4ce98190954d9a4d9c5125619.tar.gz |
driver model: Make initialization explicit.
- Call driver_init() from init/main.c::do_basic_setup().
This ensures that all the driver model subsystems are initialized before
any drivers or devices can be registered.
It nearly frees up the core and postcore initcall levels, making them
available for other kernel code to use freely.
Diffstat (limited to 'init')
-rw-r--r-- | init/main.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/init/main.c b/init/main.c index 493e3715830ba8..f885a1f785a6be 100644 --- a/init/main.c +++ b/init/main.c @@ -71,6 +71,7 @@ extern void pte_chain_init(void); extern void radix_tree_init(void); extern void free_initmem(void); extern void populate_rootfs(void); +extern void driver_init(void); #ifdef CONFIG_TC extern void tc_init(void); @@ -476,6 +477,8 @@ static void __init do_initcalls(void) */ static void __init do_basic_setup(void) { + driver_init(); + #ifdef CONFIG_SYSCTL sysctl_init(); #endif |