diff options
author | Shawn Guo | 2015-04-25 10:02:53 +0200 |
---|---|---|
committer | Shawn Guo | 2015-06-03 08:44:30 +0200 |
commit | 5ab96a8df094b87673b67e4dce70e31248d663a3 (patch) | |
tree | 6ff8f7724480bb173d24e4d7965bc9165fdf31d0 /arch/arm/mach-imx/clk-imx1.c | |
parent | ARM: imx: use dynamic mapping for timer (diff) | |
download | kernel-qcow2-linux-5ab96a8df094b87673b67e4dce70e31248d663a3.tar.gz kernel-qcow2-linux-5ab96a8df094b87673b67e4dce70e31248d663a3.tar.xz kernel-qcow2-linux-5ab96a8df094b87673b67e4dce70e31248d663a3.zip |
ARM: imx: use dynamic mapping for CCM
Replace the static mapping of CCM block in clock drivers with dynamic
mapping.
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Diffstat (limited to 'arch/arm/mach-imx/clk-imx1.c')
-rw-r--r-- | arch/arm/mach-imx/clk-imx1.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/arm/mach-imx/clk-imx1.c b/arch/arm/mach-imx/clk-imx1.c index f4a76e841966..5301d2ebb234 100644 --- a/arch/arm/mach-imx/clk-imx1.c +++ b/arch/arm/mach-imx/clk-imx1.c @@ -75,7 +75,8 @@ static void __init _mx1_clocks_init(unsigned long fref) int __init mx1_clocks_init(unsigned long fref) { - ccm = MX1_IO_ADDRESS(MX1_CCM_BASE_ADDR); + ccm = ioremap(MX1_CCM_BASE_ADDR, SZ_4K); + BUG_ON(!ccm); _mx1_clocks_init(fref); |