mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-11-09 20:45:41 +08:00
修复phy中device->ops的错误
This commit is contained in:
1 parent
33263d7e4e
commit
26ab85d50c
1 file changed
+1
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user