diff --git a/components/drivers/phy/phy.c b/components/drivers/phy/phy.c index 87152a306e6f3a865d1f8b8d12380fd94bb3e152..8e91aea99fccaf4c65b749c1f467b53befcd9d46 100644 --- a/components/drivers/phy/phy.c +++ b/components/drivers/phy/phy.c @@ -60,7 +60,7 @@ rt_err_t rt_hw_phy_register(struct rt_phy_device *phy, const char *name) device->tx_complete = RT_NULL; #ifdef RT_USING_DEVICE_OPS - device->ops = phy_ops; + device->ops = &phy_ops; #else device->init = NULL; device->open = NULL;