Explorar o código

修复phy中device->ops的错误

mazhiyuan %!s(int64=3) %!d(string=hai) anos
pai
achega
26ab85d50c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      components/drivers/phy/phy.c

+ 1 - 1
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;