blob: 84e604e25c4f4dc717ed377e2edefe0998e12cb8 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001/*
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 Dooksa1bdc7a2005-10-13 17:54:41 +010013#include "base.h"
14
Linus Torvalds1da177e2005-04-16 15:20:36 -070015/**
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
22void __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}