mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-13 15:03:58 +03:00
net: calxedaxgmac: Use dev_read_addr()
Use dev_read_addr() which supports both live device tree and flat DT backends, avoiding direct dependency on devfdt_* helpers. No functional changes. Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Peng Fan <peng.fan@nxp.com>
This commit is contained in:
committed by
Jerome Forissier
parent
c174c1f7f1
commit
0e2ba59bc5
@@ -555,7 +555,7 @@ static int xgmac_ofdata_to_platdata(struct udevice *dev)
|
||||
return -ENOMEM;
|
||||
dev_set_priv(dev, priv);
|
||||
|
||||
pdata->iobase = devfdt_get_addr(dev);
|
||||
pdata->iobase = dev_read_addr(dev);
|
||||
if (pdata->iobase == FDT_ADDR_T_NONE) {
|
||||
printf("%s: Cannot find XGMAC base address\n", __func__);
|
||||
return -EINVAL;
|
||||
|
||||
Reference in New Issue
Block a user