diff options
author | Shawn Guo <shawn.guo@linaro.org> | 2015-04-25 09:44:10 +0200 |
---|---|---|
committer | Shawn Guo <shawn.guo@linaro.org> | 2015-06-03 08:44:29 +0200 |
commit | 6c529c499fecfe65da6429917bd9cb319040c69e (patch) | |
tree | 479b41c66c118bee48546435d1b6d8a093e1cbbf /arch/arm/mach-imx/clk-imx21.c | |
parent | dt-bindings: add imx7d clock ID definitions (diff) | |
download | linux-6c529c499fecfe65da6429917bd9cb319040c69e.tar.xz linux-6c529c499fecfe65da6429917bd9cb319040c69e.zip |
ARM: imx: use dynamic mapping for timer
Pass physical address of timer block to mxc_timer_init() call, which in
turn does dynamic mapping within the function. Thus, we can avoid using
static mapping in clock drivers.
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Diffstat (limited to 'arch/arm/mach-imx/clk-imx21.c')
-rw-r--r-- | arch/arm/mach-imx/clk-imx21.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-imx/clk-imx21.c b/arch/arm/mach-imx/clk-imx21.c index 4b4c75339aa6..facdf1ddd7f1 100644 --- a/arch/arm/mach-imx/clk-imx21.c +++ b/arch/arm/mach-imx/clk-imx21.c @@ -153,7 +153,7 @@ int __init mx21_clocks_init(unsigned long lref, unsigned long href) clk_register_clkdev(clk[IMX21_CLK_I2C_GATE], NULL, "imx21-i2c.0"); clk_register_clkdev(clk[IMX21_CLK_OWIRE_GATE], NULL, "mxc_w1.0"); - mxc_timer_init(MX21_IO_ADDRESS(MX21_GPT1_BASE_ADDR), MX21_INT_GPT1); + mxc_timer_init(MX21_GPT1_BASE_ADDR, MX21_INT_GPT1); return 0; } |