blob: 7bd9b6a5b01f9497fcb2c35fccae144860299f93 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001/*
Linus Torvalds1da177e2005-04-16 15:20:36 -07002 * Copyright (c) 2002-3 Patrick Mochel
3 * Copyright (c) 2002-3 Open Source Development Labs
4 *
5 * This file is released under the GPLv2
Linus Torvalds1da177e2005-04-16 15:20:36 -07006 */
7
8#include <linux/device.h>
9#include <linux/init.h>
Dave Hansen3947be12005-10-29 18:16:54 -070010#include <linux/memory.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -070011
Ben Dooksa1bdc7a2005-10-13 17:54:41 +010012#include "base.h"
13
Linus Torvalds1da177e2005-04-16 15:20:36 -070014/**
Greg Kroah-Hartman4a3ad202008-01-24 22:50:12 -080015 * driver_init - initialize driver model.
Linus Torvalds1da177e2005-04-16 15:20:36 -070016 *
Greg Kroah-Hartman4a3ad202008-01-24 22:50:12 -080017 * Call the driver model init functions to initialize their
18 * subsystems. Called early from init/main.c.
Linus Torvalds1da177e2005-04-16 15:20:36 -070019 */
Linus Torvalds1da177e2005-04-16 15:20:36 -070020void __init driver_init(void)
21{
22 /* These are the core pieces */
23 devices_init();
24 buses_init();
25 classes_init();
26 firmware_init();
Michael Holzheu40394832006-05-09 12:53:49 +020027 hypervisor_init();
Linus Torvalds1da177e2005-04-16 15:20:36 -070028
29 /* These are also core pieces, but must come after the
30 * core core pieces.
31 */
32 platform_bus_init();
33 system_bus_init();
34 cpu_dev_init();
Dave Hansen3947be12005-10-29 18:16:54 -070035 memory_dev_init();
Linus Torvalds1da177e2005-04-16 15:20:36 -070036}