summaryrefslogtreecommitdiff
path: root/drivers/w1/mxc_w1.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/w1/mxc_w1.c')
-rw-r--r--drivers/w1/mxc_w1.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/w1/mxc_w1.c b/drivers/w1/mxc_w1.c
index 5bf08653a9..8e6372f0be 100644
--- a/drivers/w1/mxc_w1.c
+++ b/drivers/w1/mxc_w1.c
@@ -171,7 +171,7 @@ static int mxc_w1_ofdata_to_platdata(struct udevice *dev)
struct mxc_w1_pdata *pdata = dev_get_platdata(dev);
fdt_addr_t addr;
- addr = devfdt_get_addr(dev);
+ addr = dev_read_addr(dev);
if (addr == FDT_ADDR_T_NONE)
return -EINVAL;