diff options
author | Olof Johansson <olof@lixom.net> | 2011-09-08 21:09:54 -0400 |
---|---|---|
committer | Olof Johansson <olof@lixom.net> | 2011-10-13 17:08:26 -0400 |
commit | efaa19a582819dc0d6d61755a094a4b45f86827e (patch) | |
tree | 14e4bc7f5faf05ff63a3038dbfa97ef7a0b4fc28 /arch/arm/mach-tegra | |
parent | 45fba2186256988a8f0cc2d7f8de6ef53fb1e4ba (diff) |
ARM: tegra: pcie: don't cast __iomem pointers
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>
Diffstat (limited to 'arch/arm/mach-tegra')
-rw-r--r-- | arch/arm/mach-tegra/pcie.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/mach-tegra/pcie.c b/arch/arm/mach-tegra/pcie.c index f1f699d86c32..6b0c235aaef6 100644 --- a/arch/arm/mach-tegra/pcie.c +++ b/arch/arm/mach-tegra/pcie.c | |||
@@ -150,9 +150,9 @@ | |||
150 | static void __iomem *reg_pmc_base = IO_ADDRESS(TEGRA_PMC_BASE); | 150 | static void __iomem *reg_pmc_base = IO_ADDRESS(TEGRA_PMC_BASE); |
151 | 151 | ||
152 | #define pmc_writel(value, reg) \ | 152 | #define pmc_writel(value, reg) \ |
153 | __raw_writel(value, (u32)reg_pmc_base + (reg)) | 153 | __raw_writel(value, reg_pmc_base + (reg)) |
154 | #define pmc_readl(reg) \ | 154 | #define pmc_readl(reg) \ |
155 | __raw_readl((u32)reg_pmc_base + (reg)) | 155 | __raw_readl(reg_pmc_base + (reg)) |
156 | 156 | ||
157 | /* | 157 | /* |
158 | * Tegra2 defines 1GB in the AXI address map for PCIe. | 158 | * Tegra2 defines 1GB in the AXI address map for PCIe. |