summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-at91/at91x40_time.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-at91/at91x40_time.c')
-rw-r--r--arch/arm/mach-at91/at91x40_time.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/mach-at91/at91x40_time.c b/arch/arm/mach-at91/at91x40_time.c
index 6ca680a1d5d1..ee06d7bcdf76 100644
--- a/arch/arm/mach-at91/at91x40_time.c
+++ b/arch/arm/mach-at91/at91x40_time.c
@@ -29,10 +29,10 @@
#include <mach/at91_tc.h>
#define at91_tc_read(field) \
- __raw_readl(AT91_TC + field)
+ __raw_readl(AT91_IO_P2V(AT91_TC) + field)
#define at91_tc_write(field, value) \
- __raw_writel(value, AT91_TC + field);
+ __raw_writel(value, AT91_IO_P2V(AT91_TC) + field);
/*
* 3 counter/timer units present.