summaryrefslogtreecommitdiff
path: root/drivers/timer/ae3xx_timer.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/timer/ae3xx_timer.c')
-rw-r--r--drivers/timer/ae3xx_timer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/timer/ae3xx_timer.c b/drivers/timer/ae3xx_timer.c
index bcc07a0c86..b710c28f6c 100644
--- a/drivers/timer/ae3xx_timer.c
+++ b/drivers/timer/ae3xx_timer.c
@@ -14,7 +14,7 @@
DECLARE_GLOBAL_DATA_PTR;
-#define REG32_TMR(x) (*(unsigned long *) ((plat->regs) + (x>>2)))
+#define REG32_TMR(x) (*(u32 *) ((plat->regs) + (x>>2)))
/*
* Definition of register offsets
@@ -68,7 +68,7 @@ struct atctmr_timer_regs {
};
struct atftmr_timer_platdata {
- unsigned long *regs;
+ u32 *regs;
};
static int atftmr_timer_get_count(struct udevice *dev, u64 *count)