]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - drivers/net/phy/xilinx_phy.c
dm: core: Replace of_offset with accessor
[people/ms/u-boot.git] / drivers / net / phy / xilinx_phy.c
index 920bfcb380b30ca8469c7a75aabfa2118df6d2b2..3f80f0495e8d54ff6b74e5e3995e343595eaa9f7 100644 (file)
@@ -104,7 +104,7 @@ static int xilinxphy_of_init(struct phy_device *phydev)
        u32 phytype;
 
        debug("%s\n", __func__);
-       phytype = fdtdec_get_int(gd->fdt_blob, phydev->dev->of_offset,
+       phytype = fdtdec_get_int(gd->fdt_blob, dev_of_offset(phydev->dev),
                                 "phy-type", -1);
        if (phytype == XAE_PHY_TYPE_1000BASE_X)
                phydev->flags |= XAE_PHY_TYPE_1000BASE_X;