diff options
author | Olof Johansson <olof@lixom.net> | 2011-09-08 20:49:13 -0400 |
---|---|---|
committer | Olof Johansson <olof@lixom.net> | 2011-10-13 17:08:25 -0400 |
commit | 75d711662f02ad850f28507c0231cdce8fe075af (patch) | |
tree | 0f7ef2be25979e5e4a2fe16f1d58654e94037eb4 /arch/arm/mach-tegra/timer.c | |
parent | e748b7310f281d7bc739fcc8e8f71a8ac00614d7 (diff) |
ARM: tegra: timer: don't cast __iomem pointers
Fixes a lot of:
arch/arm/mach-tegra/timer.c:75:2: warning: cast removes address space of expression
arch/arm/mach-tegra/timer.c:75:2: warning: incorrect type in argument 1 (different base types)
arch/arm/mach-tegra/timer.c:75:2: expected void const volatile [noderef] <asn:2>*<noident>
arch/arm/mach-tegra/timer.c:75:2: got unsigned int
arch/arm/mach-tegra/timer.c:75:2: warning: cast removes address space of expression
Signed-off-by: Olof Johansson <olof@lixom.net>
Acked-by: Stephen Warren <swarren@nvidia.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'arch/arm/mach-tegra/timer.c')
-rw-r--r-- | arch/arm/mach-tegra/timer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/mach-tegra/timer.c b/arch/arm/mach-tegra/timer.c index 90350420c4e9..4d6759a02498 100644 --- a/arch/arm/mach-tegra/timer.c +++ b/arch/arm/mach-tegra/timer.c | |||
@@ -62,9 +62,9 @@ static struct timespec persistent_ts; | |||
62 | static u64 persistent_ms, last_persistent_ms; | 62 | static u64 persistent_ms, last_persistent_ms; |
63 | 63 | ||
64 | #define timer_writel(value, reg) \ | 64 | #define timer_writel(value, reg) \ |
65 | __raw_writel(value, (u32)timer_reg_base + (reg)) | 65 | __raw_writel(value, timer_reg_base + (reg)) |
66 | #define timer_readl(reg) \ | 66 | #define timer_readl(reg) \ |
67 | __raw_readl((u32)timer_reg_base + (reg)) | 67 | __raw_readl(timer_reg_base + (reg)) |
68 | 68 | ||
69 | static int tegra_timer_set_next_event(unsigned long cycles, | 69 | static int tegra_timer_set_next_event(unsigned long cycles, |
70 | struct clock_event_device *evt) | 70 | struct clock_event_device *evt) |