| 612 | } |
| 613 | |
| 614 | static int |
| 615 | platform_bus_cleanup(void) |
| 616 | { |
| 617 | struct rte_platform_device *pdev, *tmp; |
| 618 | |
| 619 | RTE_TAILQ_FOREACH_SAFE(pdev, &platform_bus.device_list, next, tmp) { |
| 620 | TAILQ_REMOVE(&platform_bus.device_list, pdev, next); |
| 621 | platform_bus_unplug(&pdev->device); |
| 622 | } |
| 623 | |
| 624 | return 0; |
| 625 | } |
| 626 | |
| 627 | struct rte_platform_bus platform_bus = { |
| 628 | .bus = { |
nothing calls this directly
no test coverage detected