]>
Commit | Line | Data |
---|---|---|
1da177e4 LT |
1 | /* |
2 | * | |
3 | * Copyright (c) 2002-3 Patrick Mochel | |
4 | * Copyright (c) 2002-3 Open Source Development Labs | |
5 | * | |
6 | * This file is released under the GPLv2 | |
7 | * | |
8 | */ | |
9 | ||
10 | #include <linux/device.h> | |
11 | #include <linux/init.h> | |
12 | ||
a1bdc7aa BD |
13 | #include "base.h" |
14 | ||
1da177e4 LT |
15 | /** |
16 | * driver_init - initialize driver model. | |
17 | * | |
18 | * Call the driver model init functions to initialize their | |
19 | * subsystems. Called early from init/main.c. | |
20 | */ | |
21 | ||
22 | void __init driver_init(void) | |
23 | { | |
24 | /* These are the core pieces */ | |
25 | devices_init(); | |
26 | buses_init(); | |
27 | classes_init(); | |
28 | firmware_init(); | |
29 | ||
30 | /* These are also core pieces, but must come after the | |
31 | * core core pieces. | |
32 | */ | |
33 | platform_bus_init(); | |
34 | system_bus_init(); | |
35 | cpu_dev_init(); | |
36 | attribute_container_init(); | |
37 | } |