mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-13 15:03:58 +03:00
phy: marvell: comphy: Use dev_read_addr_index_ptr()
Use dev_read_addr_index_ptr() which supports both live device tree and flat DT backends, avoiding direct dependency on devfdt_* helpers. No functional changes. Signed-off-by: Peng Fan <peng.fan@nxp.com> Reviewed-by: Stefan Roese <stefan.roese@mailbox.org>
This commit is contained in:
committed by
Jerome Forissier
parent
6184a9b106
commit
dde8b3b7e1
@@ -84,11 +84,11 @@ static int comphy_probe(struct udevice *dev)
|
||||
int res;
|
||||
|
||||
/* Save base addresses for later use */
|
||||
chip_cfg->comphy_base_addr = devfdt_get_addr_index_ptr(dev, 0);
|
||||
chip_cfg->comphy_base_addr = dev_read_addr_index_ptr(dev, 0);
|
||||
if (!chip_cfg->comphy_base_addr)
|
||||
return -EINVAL;
|
||||
|
||||
chip_cfg->hpipe3_base_addr = devfdt_get_addr_index_ptr(dev, 1);
|
||||
chip_cfg->hpipe3_base_addr = dev_read_addr_index_ptr(dev, 1);
|
||||
if (!chip_cfg->hpipe3_base_addr)
|
||||
return -EINVAL;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user