| 525 | } |
| 526 | |
| 527 | static int |
| 528 | platform_bus_unplug(struct rte_device *dev) |
| 529 | { |
| 530 | struct rte_platform_device *pdev; |
| 531 | |
| 532 | pdev = RTE_DEV_TO_PLATFORM_DEV(dev); |
| 533 | if (pdev == NULL) |
| 534 | return -EINVAL; |
| 535 | |
| 536 | device_release_driver(pdev); |
| 537 | device_cleanup(pdev); |
| 538 | rte_devargs_remove(pdev->device.devargs); |
| 539 | free(pdev); |
| 540 | |
| 541 | return 0; |
| 542 | } |
| 543 | |
| 544 | static int |
| 545 | platform_bus_parse(const char *name, void *addr) |
no test coverage detected