summaryrefslogtreecommitdiff
path: root/drivers/timer/ag101p_timer.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/timer/ag101p_timer.c')
-rw-r--r--drivers/timer/ag101p_timer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/timer/ag101p_timer.c b/drivers/timer/ag101p_timer.c
index a73a8c09b5..d500ba1101 100644
--- a/drivers/timer/ag101p_timer.c
+++ b/drivers/timer/ag101p_timer.c
@@ -90,7 +90,7 @@ static int atftmr_timer_probe(struct udevice *dev)
static int atftme_timer_ofdata_to_platdata(struct udevice *dev)
{
- struct atftmr_timer_platdata *plat = dev_get_platdata(dev);
+ struct atftmr_timer_platdata *plat = dev_get_plat(dev);
plat->regs = map_physmem(dev_read_addr(dev),
sizeof(struct atftmr_timer_regs),
MAP_NOCACHE);