| 454 | } |
| 455 | |
| 456 | static int |
| 457 | platform_bus_probe(void) |
| 458 | { |
| 459 | struct rte_platform_device *pdev; |
| 460 | int ret; |
| 461 | |
| 462 | FOREACH_DEVICE_ON_PLATFORM_BUS(pdev) { |
| 463 | ret = device_attach(pdev); |
| 464 | if (ret == -EBUSY) { |
| 465 | PLATFORM_LOG(DEBUG, "device %s already probed\n", pdev->name); |
| 466 | continue; |
| 467 | } |
| 468 | if (ret) |
| 469 | PLATFORM_LOG(ERR, "failed to probe %s\n", pdev->name); |
| 470 | } |
| 471 | |
| 472 | return 0; |
| 473 | } |
| 474 | |
| 475 | static struct rte_device * |
| 476 | platform_bus_find_device(const struct rte_device *start, rte_dev_cmp_t cmp, const void *data) |
nothing calls this directly
no test coverage detected