| 438 | } |
| 439 | |
| 440 | static int |
| 441 | device_attach(struct rte_platform_device *pdev) |
| 442 | { |
| 443 | struct rte_platform_driver *pdrv; |
| 444 | |
| 445 | FOREACH_DRIVER_ON_PLATFORM_BUS(pdrv) { |
| 446 | if (driver_match_device(pdrv, pdev)) |
| 447 | break; |
| 448 | } |
| 449 | |
| 450 | if (pdrv == NULL) |
| 451 | return -ENODEV; |
| 452 | |
| 453 | return driver_probe_device(pdrv, pdev); |
| 454 | } |
| 455 | |
| 456 | static int |
| 457 | platform_bus_probe(void) |
no test coverage detected