summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-tegra/timer.c
diff options
context:
space:
mode:
authorOlof Johansson <olof@lixom.net>2011-09-08 17:49:13 -0700
committerOlof Johansson <olof@lixom.net>2011-10-13 14:08:25 -0700
commit75d711662f02ad850f28507c0231cdce8fe075af (patch)
tree0f7ef2be25979e5e4a2fe16f1d58654e94037eb4 /arch/arm/mach-tegra/timer.c
parente748b7310f281d7bc739fcc8e8f71a8ac00614d7 (diff)
downloadtalos-obmc-linux-75d711662f02ad850f28507c0231cdce8fe075af.tar.gz
talos-obmc-linux-75d711662f02ad850f28507c0231cdce8fe075af.zip
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.c4
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;
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)
OpenPOWER on IntegriCloud