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> |
Dave Hansen | 3947be1 | 2005-10-29 18:16:54 -0700 | [diff] [blame] | 12 | #include <linux/memory.h> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 13 | |
Ben Dooks | a1bdc7a | 2005-10-13 17:54:41 +0100 | [diff] [blame] | 14 | #include "base.h" |
| 15 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 16 | /** |
| 17 | * driver_init - initialize driver model. |
| 18 | * |
| 19 | * Call the driver model init functions to initialize their |
| 20 | * subsystems. Called early from init/main.c. |
| 21 | */ |
| 22 | |
| 23 | void __init driver_init(void) |
| 24 | { |
| 25 | /* These are the core pieces */ |
| 26 | devices_init(); |
| 27 | buses_init(); |
| 28 | classes_init(); |
| 29 | firmware_init(); |
| 30 | |
| 31 | /* These are also core pieces, but must come after the |
| 32 | * core core pieces. |
| 33 | */ |
| 34 | platform_bus_init(); |
| 35 | system_bus_init(); |
| 36 | cpu_dev_init(); |
Dave Hansen | 3947be1 | 2005-10-29 18:16:54 -0700 | [diff] [blame] | 37 | memory_dev_init(); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 38 | attribute_container_init(); |
| 39 | } |