ARM: tegra: pcie: don't cast __iomem pointers
authorOlof Johansson <olof@lixom.net>
Fri, 9 Sep 2011 01:09:54 +0000 (18:09 -0700)
committerOlof Johansson <olof@lixom.net>
Thu, 13 Oct 2011 21:08:26 +0000 (14:08 -0700)
Fixes a lot of:

arch/arm/mach-tegra/pcie.c:678:8: warning: cast removes address space of expression
arch/arm/mach-tegra/pcie.c:678:8: warning: incorrect type in argument 1 (different base types)
arch/arm/mach-tegra/pcie.c:678:8:    expected void const volatile [noderef] <asn:2>*<noident>
arch/arm/mach-tegra/pcie.c:678:8:    got unsigned int
arch/arm/mach-tegra/pcie.c:678:8: 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/pcie.c

index f1f699d86c3278c90c514bd7ac3daec35b2fc7cb..6b0c235aaef6933685f950e1afced1fa72606ff1 100644 (file)
 static void __iomem *reg_pmc_base = IO_ADDRESS(TEGRA_PMC_BASE);
 
 #define pmc_writel(value, reg) \
-       __raw_writel(value, (u32)reg_pmc_base + (reg))
+       __raw_writel(value, reg_pmc_base + (reg))
 #define pmc_readl(reg) \
-       __raw_readl((u32)reg_pmc_base + (reg))
+       __raw_readl(reg_pmc_base + (reg))
 
 /*
  * Tegra2 defines 1GB in the AXI address map for PCIe.
This page took 0.029244 seconds and 5 git commands to generate.