]> git.sur5r.net Git - u-boot/blobdiff - drivers/net/phy/ti.c
dm: core: Replace of_offset with accessor (part 2)
[u-boot] / drivers / net / phy / ti.c
index 1d870806a3540453c972e0d59baf64742fe77a11..6ad31a0465863a215287d065a89104e0c221a469 100644 (file)
@@ -174,7 +174,7 @@ static int dp83867_of_init(struct phy_device *phydev)
 {
        struct dp83867_private *dp83867 = phydev->priv;
        struct udevice *dev = phydev->dev;
-       int node = dev->of_offset;
+       int node = dev_of_offset(dev);
        const void *fdt = gd->fdt_blob;
 
        if (fdtdec_get_bool(fdt, node, "ti,max-output-impedance"))