| 490 | } |
| 491 | |
| 492 | static int |
| 493 | platform_bus_plug(struct rte_device *dev) |
| 494 | { |
| 495 | struct rte_platform_device *pdev; |
| 496 | |
| 497 | if (!dev_allowed(dev->name)) |
| 498 | return -EPERM; |
| 499 | |
| 500 | if (!dev_is_bound_vfio_platform(dev->name)) |
| 501 | return -EPERM; |
| 502 | |
| 503 | pdev = RTE_DEV_TO_PLATFORM_DEV(dev); |
| 504 | if (pdev == NULL) |
| 505 | return -EINVAL; |
| 506 | |
| 507 | return device_attach(pdev); |
| 508 | } |
| 509 | |
| 510 | static void |
| 511 | device_release_driver(struct rte_platform_device *pdev) |
nothing calls this directly
no test coverage detected