summaryrefslogtreecommitdiff
path: root/drivers/phy/ti-pipe3-phy.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/phy/ti-pipe3-phy.c')
-rw-r--r--drivers/phy/ti-pipe3-phy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/phy/ti-pipe3-phy.c b/drivers/phy/ti-pipe3-phy.c
index 350dab7..680e32f 100644
--- a/drivers/phy/ti-pipe3-phy.c
+++ b/drivers/phy/ti-pipe3-phy.c
@@ -296,7 +296,7 @@ static void *get_reg(struct udevice *dev, const char *name)
return NULL;
}
- cell = fdt_getprop(gd->fdt_blob, dev->of_offset, name,
+ cell = fdt_getprop(gd->fdt_blob, dev_of_offset(dev), name,
&len);
if (len < 2*sizeof(fdt32_t)) {
error("offset not available for %s\n", name);