Merge branch 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel...
[linux/fpc-iii.git] / drivers / base / init.c
blob908e6520e804b2967ab029ca6a617cc0d1902f16
1 // SPDX-License-Identifier: GPL-2.0
2 /*
3 * Copyright (c) 2002-3 Patrick Mochel
4 * Copyright (c) 2002-3 Open Source Development Labs
5 */
7 #include <linux/device.h>
8 #include <linux/init.h>
9 #include <linux/memory.h>
10 #include <linux/of.h>
12 #include "base.h"
14 /**
15 * driver_init - initialize driver model.
17 * Call the driver model init functions to initialize their
18 * subsystems. Called early from init/main.c.
20 void __init driver_init(void)
22 /* These are the core pieces */
23 devtmpfs_init();
24 devices_init();
25 buses_init();
26 classes_init();
27 firmware_init();
28 hypervisor_init();
30 /* These are also core pieces, but must come after the
31 * core core pieces.
33 of_core_init();
34 platform_bus_init();
35 cpu_dev_init();
36 memory_dev_init();
37 container_dev_init();