summaryrefslogtreecommitdiff
path: root/arch/arm/mach-at91/at91x40_time.c
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2012-09-15 00:10:19 +0400
committerArnd Bergmann <arnd@arndb.de>2012-09-18 12:15:11 +0400
commitdca4ba4121a66bdd0d85d02df21aee2738edcf5a (patch)
tree4ea662dcdb71e2fee7113040a9d6f98a4c8725c2 /arch/arm/mach-at91/at91x40_time.c
parent0a4b04dc299dfb691827a4001b3d8d7e443b71c9 (diff)
downloadlinux-dca4ba4121a66bdd0d85d02df21aee2738edcf5a.tar.xz
ARM: at91: use __iomem pointers for MMIO
ARM is moving to stricter checks on readl/write functions, so we need to use the correct types everywhere. Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com> Cc: Jean-Christophe Plagniol-Villard <plagnioj@jcrosoft.com> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
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.