ARM: tegra: tegra2_clocks: don't cast __iomem pointers
Fixes a lot of: arch/arm/mach-tegra/tegra2_clocks.c:180:2: warning: cast removes address space of expression arch/arm/mach-tegra/tegra2_clocks.c:180:2: warning: incorrect type in argument 1 (different base types) arch/arm/mach-tegra/tegra2_clocks.c:180:2: expected void const volatile [noderef] <asn:2>*<noident> arch/arm/mach-tegra/tegra2_clocks.c:180:2: got unsigned int arch/arm/mach-tegra/tegra2_clocks.c:180: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>
This commit is contained in:
parent
75d711662f
commit
d395935f55
@ -166,13 +166,13 @@ static DEFINE_SPINLOCK(clock_register_lock);
|
||||
static int tegra_periph_clk_enable_refcount[3 * 32];
|
||||
|
||||
#define clk_writel(value, reg) \
|
||||
__raw_writel(value, (u32)reg_clk_base + (reg))
|
||||
__raw_writel(value, reg_clk_base + (reg))
|
||||
#define clk_readl(reg) \
|
||||
__raw_readl((u32)reg_clk_base + (reg))
|
||||
__raw_readl(reg_clk_base + (reg))
|
||||
#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))
|
||||
|
||||
unsigned long clk_measure_input_freq(void)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user