]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
ARM: tegra: timer: don't cast __iomem pointers
authorOlof Johansson <olof@lixom.net>
Fri, 9 Sep 2011 00:49:13 +0000 (17:49 -0700)
committerOlof Johansson <olof@lixom.net>
Thu, 13 Oct 2011 21:08:25 +0000 (14:08 -0700)
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>
arch/arm/mach-tegra/timer.c

index 90350420c4e9b7723b6c4738fdfe54c91f6a9a36..4d6759a0249828806609518b1b3b22a84c069b6c 100644 (file)
@@ -62,9 +62,9 @@ static struct timespec persistent_ts;
 static u64 persistent_ms, last_persistent_ms;
 
 #define timer_writel(value, reg) \
-       __raw_writel(value, (u32)timer_reg_base + (reg))
+       __raw_writel(value, timer_reg_base + (reg))
 #define timer_readl(reg) \
-       __raw_readl((u32)timer_reg_base + (reg))
+       __raw_readl(timer_reg_base + (reg))
 
 static int tegra_timer_set_next_event(unsigned long cycles,
                                         struct clock_event_device *evt)