summaryrefslogtreecommitdiff
path: root/drivers/rtc/mvrtc.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/rtc/mvrtc.c')
-rw-r--r--drivers/rtc/mvrtc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/rtc/mvrtc.c b/drivers/rtc/mvrtc.c
index ed057f7bc4..6f49505d4e 100644
--- a/drivers/rtc/mvrtc.c
+++ b/drivers/rtc/mvrtc.c
@@ -172,7 +172,7 @@ static int mv_rtc_ofdata_to_platdata(struct udevice *dev)
{
struct mvrtc_pdata *pdata = dev_get_platdata(dev);
- pdata->iobase = dev_read_addr(dev);
+ pdata->iobase = devfdt_get_addr(dev);
return 0;
}