* Finalize a specific device. * * The parent should be finalized first to avoid having an ordering problem. * This is done by calling the parent's final() method before its children's * final() methods. * * @param dev The device to be initialized. */
| 608 | * @param dev The device to be initialized. |
| 609 | */ |
| 610 | static void final_dev(struct device *dev) |
| 611 | { |
| 612 | if (!dev->enabled) |
| 613 | return; |
| 614 | |
| 615 | if (dev->ops && dev->ops->final) { |
| 616 | printk(BIOS_DEBUG, "%s final\n", dev_path(dev)); |
| 617 | dev->ops->final(dev); |
| 618 | } |
| 619 | } |
| 620 | |
| 621 | static void final_link(struct bus *link) |
| 622 | { |
no test coverage detected