]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - drivers/net/sandbox.c
dm: core: Replace of_offset with accessor
[people/ms/u-boot.git] / drivers / net / sandbox.c
index d538d379bbec77cb54c7072b63480218f3d456dd..79d0ae68bfd5281ff2d0c985053de8e9d71925d5 100644 (file)
@@ -60,8 +60,9 @@ static int sb_eth_start(struct udevice *dev)
 
        debug("eth_sandbox: Start\n");
 
-       fdtdec_get_byte_array(gd->fdt_blob, dev->of_offset, "fake-host-hwaddr",
-                             priv->fake_host_hwaddr, ARP_HLEN);
+       fdtdec_get_byte_array(gd->fdt_blob, dev_of_offset(dev),
+                             "fake-host-hwaddr", priv->fake_host_hwaddr,
+                             ARP_HLEN);
        priv->recv_packet_buffer = net_rx_packets[0];
        return 0;
 }