aboutsummaryrefslogtreecommitdiff
path: root/drivers/timer/altera_timer.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/timer/altera_timer.c')
-rw-r--r--drivers/timer/altera_timer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/timer/altera_timer.c b/drivers/timer/altera_timer.c
index 4579717ee5d..1daa0eac5c1 100644
--- a/drivers/timer/altera_timer.c
+++ b/drivers/timer/altera_timer.c
@@ -65,7 +65,7 @@ static int altera_timer_probe(struct udevice *dev)
static int altera_timer_ofdata_to_platdata(struct udevice *dev)
{
- struct altera_timer_platdata *plat = dev_get_platdata(dev);
+ struct altera_timer_platdata *plat = dev_get_plat(dev);
plat->regs = map_physmem(dev_read_addr(dev),
sizeof(struct altera_timer_regs),