diff options
| author | mazhiyuan <[email protected]> | 2021-10-14 10:28:19 +0800 |
|---|---|---|
| committer | mazhiyuan <[email protected]> | 2021-10-14 10:28:19 +0800 |
| commit | 26ab85d50ca7c5a2ec19fa2290015ad980233dea (patch) | |
| tree | 65cd9c90784e3a2b9c4daea74e5d91210134afc3 /components/drivers/phy | |
| parent | 33263d7e4ec22b118d0407ec7488ccfa60a8a0a1 (diff) | |
修复phy中device->ops的错误
Diffstat (limited to 'components/drivers/phy')
| -rw-r--r-- | components/drivers/phy/phy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/drivers/phy/phy.c b/components/drivers/phy/phy.c index 87152a306e..8e91aea99f 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; |
