X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=drivers%2Fnet%2Fsandbox.c;h=59c57d1c6d3f9af0fd81de972adfc9869e0d61d4;hb=e12546de54fc9be818e8d39967b07fa351d9e5ba;hp=d538d379bbec77cb54c7072b63480218f3d456dd;hpb=d77a092dd3619ca747fb8290ae8f255e9799aaa6;p=oweals%2Fu-boot.git diff --git a/drivers/net/sandbox.c b/drivers/net/sandbox.c index d538d379bb..59c57d1c6d 100644 --- a/drivers/net/sandbox.c +++ b/drivers/net/sandbox.c @@ -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; } @@ -204,7 +205,7 @@ static int sb_eth_ofdata_to_platdata(struct udevice *dev) { struct eth_pdata *pdata = dev_get_platdata(dev); - pdata->iobase = dev_get_addr(dev); + pdata->iobase = devfdt_get_addr(dev); return 0; }