[PATCH v2 1/4] net: phy: aquantia: switch to use phy_get_ofnode()

Beiyan Yun
2025-10-14T11:56:35Z

Use PHY API phy_get_ofnode() helper to get PHY DT node.

Signed-off-by: Beiyan Yun <root@infi.wang>
---

(no changes since v1)

drivers/net/phy/aquantia.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/phy/aquantia.c b/drivers/net/phy/aquantia.c
index f63a13824ca..903fcd667f6 100644
--- a/drivers/net/phy/aquantia.c
+++ b/drivers/net/phy/aquantia.c
@@ -338,7 +338,7 @@ static int aquantia_set_proto(struct phy_device *phydev,

static int aquantia_dts_config(struct phy_device *phydev)
{
- ofnode node = phydev->node;
+ ofnode node = phy_get_ofnode(phydev);
u32 prop;
u16 reg;

--
2.47.3