* Initialize all devices in the global device tree. * * Starting at the root device, call the device's init() method to do * device-specific setup, then call each child's init() method. */
| 583 | * device-specific setup, then call each child's init() method. |
| 584 | */ |
| 585 | void dev_initialize(void) |
| 586 | { |
| 587 | printk(BIOS_INFO, "Initializing devices...\n"); |
| 588 | |
| 589 | /* First call the mainboard init. */ |
| 590 | init_dev(&dev_root); |
| 591 | |
| 592 | /* Now initialize everything. */ |
| 593 | if (dev_root.downstream) |
| 594 | init_link(dev_root.downstream); |
| 595 | post_log_clear(); |
| 596 | |
| 597 | printk(BIOS_INFO, "Devices initialized\n"); |
| 598 | show_all_devs(BIOS_SPEW, "After init."); |
| 599 | } |
| 600 | |
| 601 | /** |
| 602 | * Finalize a specific device. |
no test coverage detected