| 562 | } |
| 563 | |
| 564 | static void init_link(struct bus *link) |
| 565 | { |
| 566 | struct device *dev; |
| 567 | |
| 568 | for (dev = link->children; dev; dev = dev->sibling) { |
| 569 | post_code(POSTCODE_BS_DEV_INIT); |
| 570 | post_log_path(dev); |
| 571 | init_dev(dev); |
| 572 | } |
| 573 | |
| 574 | for (dev = link->children; dev; dev = dev->sibling) |
| 575 | if (dev->downstream) |
| 576 | init_link(dev->downstream); |
| 577 | } |
| 578 | |
| 579 | /** |
| 580 | * Initialize all devices in the global device tree. |
no test coverage detected