aboutsummaryrefslogtreecommitdiffstats
path: root/init
diff options
context:
space:
mode:
authorPatrick Mochel <mochel@osdl.org>2003-03-03 22:13:44 -0600
committerPatrick Mochel <mochel@osdl.org>2003-03-03 22:13:44 -0600
commitfa0aa7cc093960f4ce98190954d9a4d9c5125619 (patch)
tree876f264a065da01c0f92d10f35fa3575fb093f77 /init
parent0a6bca96721d9398cff3d10883dd62769bfec68b (diff)
downloadhistory-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.c3
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