Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0
0002 /*
0003  * Copyright (c) 2002-3 Patrick Mochel
0004  * Copyright (c) 2002-3 Open Source Development Labs
0005  */
0006 
0007 #include <linux/device.h>
0008 #include <linux/init.h>
0009 #include <linux/memory.h>
0010 #include <linux/of.h>
0011 #include <linux/backing-dev.h>
0012 
0013 #include "base.h"
0014 
0015 /**
0016  * driver_init - initialize driver model.
0017  *
0018  * Call the driver model init functions to initialize their
0019  * subsystems. Called early from init/main.c.
0020  */
0021 void __init driver_init(void)
0022 {
0023     /* These are the core pieces */
0024     bdi_init(&noop_backing_dev_info);
0025     devtmpfs_init();
0026     devices_init();
0027     buses_init();
0028     classes_init();
0029     firmware_init();
0030     hypervisor_init();
0031 
0032     /* These are also core pieces, but must come after the
0033      * core core pieces.
0034      */
0035     of_core_init();
0036     platform_bus_init();
0037     auxiliary_bus_init();
0038     cpu_dev_init();
0039     memory_dev_init();
0040     node_dev_init();
0041     container_dev_init();
0042 }