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>
This commit is contained in:
@@ -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.
|
||||
|
Reference in New Issue
Block a user