| 362 | } |
| 363 | |
| 364 | static int |
| 365 | driver_call_probe(struct rte_platform_driver *pdrv, struct rte_platform_device *pdev) |
| 366 | { |
| 367 | int ret; |
| 368 | |
| 369 | if (rte_dev_is_probed(&pdev->device)) |
| 370 | return -EBUSY; |
| 371 | |
| 372 | if (pdrv->probe != NULL) { |
| 373 | pdev->driver = pdrv; |
| 374 | ret = pdrv->probe(pdev); |
| 375 | if (ret) |
| 376 | return ret; |
| 377 | } |
| 378 | |
| 379 | pdev->device.driver = &pdrv->driver; |
| 380 | |
| 381 | return 0; |
| 382 | } |
| 383 | |
| 384 | static int |
| 385 | driver_probe_device(struct rte_platform_driver *pdrv, struct rte_platform_device *pdev) |
no test coverage detected