driver core: devcoredump: convert to use class_groups
[linux/fpc-iii.git] / drivers / base / init.c
blob48c0e220acc0a1b8192ca6b523ad35ab7073eba7
1 /*
2 * Copyright (c) 2002-3 Patrick Mochel
3 * Copyright (c) 2002-3 Open Source Development Labs
5 * This file is released under the GPLv2
6 */
8 #include <linux/device.h>
9 #include <linux/init.h>
10 #include <linux/memory.h>
11 #include <linux/of.h>
13 #include "base.h"
15 /**
16 * driver_init - initialize driver model.
18 * Call the driver model init functions to initialize their
19 * subsystems. Called early from init/main.c.
21 void __init driver_init(void)
23 /* These are the core pieces */
24 devtmpfs_init();
25 devices_init();
26 buses_init();
27 classes_init();
28 firmware_init();
29 hypervisor_init();
31 /* These are also core pieces, but must come after the
32 * core core pieces.
34 platform_bus_init();
35 cpu_dev_init();
36 memory_dev_init();
37 container_dev_init();
38 of_core_init();