]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - drivers/net/fec_mxc.c
dm: core: Replace of_offset with accessor
[people/ms/u-boot.git] / drivers / net / fec_mxc.c
index 3304fddc696ffca174477bd7f1f4859a8e8af2d0..5f34c8fe3c6e22fde41aa50bd8d2874be51a41c5 100644 (file)
@@ -1277,7 +1277,8 @@ static int fecmxc_ofdata_to_platdata(struct udevice *dev)
        priv->eth = (struct ethernet_regs *)pdata->iobase;
 
        pdata->phy_interface = -1;
-       phy_mode = fdt_getprop(gd->fdt_blob, dev->of_offset, "phy-mode", NULL);
+       phy_mode = fdt_getprop(gd->fdt_blob, dev_of_offset(dev), "phy-mode",
+                              NULL);
        if (phy_mode)
                pdata->phy_interface = phy_get_interface_by_name(phy_mode);
        if (pdata->phy_interface == -1) {