// SPDX-License-Identifier: GPL-2.01/*2* Copyright (c) 2002-3 Patrick Mochel3* Copyright (c) 2002-3 Open Source Development Labs4*/56#include <linux/device.h>7#include <linux/init.h>8#include <linux/memory.h>9#include <linux/of.h>10#include <linux/backing-dev.h>1112#include "base.h"1314/**15* driver_init - initialize driver model.16*17* Call the driver model init functions to initialize their18* subsystems. Called early from init/main.c.19*/20void __init driver_init(void)21{22/* These are the core pieces */23bdi_init(&noop_backing_dev_info);24devtmpfs_init();25devices_init();26buses_init();27classes_init();28firmware_init();29hypervisor_init();3031/* These are also core pieces, but must come after the32* core core pieces.33*/34faux_bus_init();35of_core_init();36platform_bus_init();37auxiliary_bus_init();38memory_dev_init();39node_dev_init();40cpu_dev_init();41container_dev_init();42}434445