init.c 776 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /*
  2. * Copyright (c) 2002-3 Patrick Mochel
  3. * Copyright (c) 2002-3 Open Source Development Labs
  4. *
  5. * This file is released under the GPLv2
  6. */
  7. #include <linux/device.h>
  8. #include <linux/init.h>
  9. #include <linux/memory.h>
  10. #include <linux/of.h>
  11. #include "base.h"
  12. /**
  13. * driver_init - initialize driver model.
  14. *
  15. * Call the driver model init functions to initialize their
  16. * subsystems. Called early from init/main.c.
  17. */
  18. void __init driver_init(void)
  19. {
  20. /* These are the core pieces */
  21. devtmpfs_init();
  22. devices_init();
  23. buses_init();
  24. classes_init();
  25. firmware_init();
  26. hypervisor_init();
  27. /* These are also core pieces, but must come after the
  28. * core core pieces.
  29. */
  30. platform_bus_init();
  31. cpu_dev_init();
  32. memory_dev_init();
  33. container_dev_init();
  34. of_core_init();
  35. }