Blame view
drivers/base/init.c
714 Bytes
1da177e4c
|
1 |
/* |
1da177e4c
|
2 3 4 5 |
* Copyright (c) 2002-3 Patrick Mochel * Copyright (c) 2002-3 Open Source Development Labs * * This file is released under the GPLv2 |
1da177e4c
|
6 7 8 9 |
*/ #include <linux/device.h> #include <linux/init.h> |
3947be196
|
10 |
#include <linux/memory.h> |
1da177e4c
|
11 |
|
a1bdc7aad
|
12 |
#include "base.h" |
1da177e4c
|
13 |
/** |
4a3ad20cc
|
14 |
* driver_init - initialize driver model. |
1da177e4c
|
15 |
* |
4a3ad20cc
|
16 17 |
* Call the driver model init functions to initialize their * subsystems. Called early from init/main.c. |
1da177e4c
|
18 |
*/ |
1da177e4c
|
19 20 21 |
void __init driver_init(void) { /* These are the core pieces */ |
2b2af54a5
|
22 |
devtmpfs_init(); |
1da177e4c
|
23 24 25 26 |
devices_init(); buses_init(); classes_init(); firmware_init(); |
4039483fd
|
27 |
hypervisor_init(); |
1da177e4c
|
28 29 30 31 32 |
/* These are also core pieces, but must come after the * core core pieces. */ platform_bus_init(); |
1da177e4c
|
33 |
cpu_dev_init(); |
3947be196
|
34 |
memory_dev_init(); |
1da177e4c
|
35 |
} |