Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 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 | |
Ben Dooks | a1bdc7a | 2005-10-13 17:54:41 +0100 | [diff] [blame^] | 13 | #include "base.h" |
| 14 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 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 | } |