| 503 | RT_PHY_DRIVER_REGISTER(genphy); |
| 504 | |
| 505 | rt_err_t rt_phy_device_register(struct rt_phy_device *pdev) |
| 506 | { |
| 507 | rt_err_t err; |
| 508 | RT_ASSERT(pdev != RT_NULL); |
| 509 | err = rt_bus_add_device(&rt_phy_bus, &pdev->parent); |
| 510 | if (err) |
| 511 | { |
| 512 | return err; |
| 513 | } |
| 514 | if(!pdev->drv) |
| 515 | pdev->drv = &genphy; |
| 516 | |
| 517 | return RT_EOK; |
| 518 | } |
| 519 | |
| 520 | rt_err_t rt_phy_driver_register(struct rt_phy_driver *pdrv) |
| 521 | { |
no test coverage detected