| 508 | } |
| 509 | |
| 510 | static void |
| 511 | device_release_driver(struct rte_platform_device *pdev) |
| 512 | { |
| 513 | struct rte_platform_driver *pdrv; |
| 514 | int ret; |
| 515 | |
| 516 | pdrv = pdev->driver; |
| 517 | if (pdrv != NULL && pdrv->remove != NULL) { |
| 518 | ret = pdrv->remove(pdev); |
| 519 | if (ret) |
| 520 | PLATFORM_LOG(WARNING, "failed to remove %s\n", pdev->name); |
| 521 | } |
| 522 | |
| 523 | pdev->device.driver = NULL; |
| 524 | pdev->driver = NULL; |
| 525 | } |
| 526 | |
| 527 | static int |
| 528 | platform_bus_unplug(struct rte_device *dev) |
no outgoing calls
no test coverage detected