]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
net: phy: aquantia: switch to use phy_get_ofnode()
authorBeiyan Yun <root@infi.wang>
Tue, 23 Sep 2025 07:12:58 +0000 (15:12 +0800)
committerJerome Forissier <jerome.forissier@linaro.org>
Wed, 22 Oct 2025 09:16:09 +0000 (11:16 +0200)
Use PHY API phy_get_ofnode() helper to get PHY DT node.

Signed-off-by: Beiyan Yun <root@infi.wang>
drivers/net/phy/aquantia.c

index f63a13824ca68c52f138d98ae70f290286e1ebb7..903fcd667f6a5c5c276fb8480909c524c32cc8b6 100644 (file)
@@ -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;