summaryrefslogtreecommitdiffstats
path: root/drivers/timer/ast_timer.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/timer/ast_timer.c')
-rw-r--r--drivers/timer/ast_timer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/timer/ast_timer.c b/drivers/timer/ast_timer.c
index 9f28cbfcf9..e313249740 100644
--- a/drivers/timer/ast_timer.c
+++ b/drivers/timer/ast_timer.c
@@ -64,7 +64,7 @@ static int ast_timer_ofdata_to_platdata(struct udevice *dev)
{
struct ast_timer_priv *priv = dev_get_priv(dev);
- priv->regs = devfdt_get_addr_ptr(dev);
+ priv->regs = dev_read_addr_ptr(dev);
if (!priv->regs)
return -EINVAL;