]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - arch/arm/mach-spear6xx/spear6xx.c
SPEAr: Switch to common clock framework
[mirror_ubuntu-artful-kernel.git] / arch / arm / mach-spear6xx / spear6xx.c
index 2ed8b14c82c8a34d04b8e73eb7cdc1dc1ce6f5ec..771e19e3c43cad21a5d7dff804678ecf25e7e8f2 100644 (file)
@@ -56,9 +56,6 @@ static struct map_desc spear6xx_io_desc[] __initdata = {
 void __init spear6xx_map_io(void)
 {
        iotable_init(spear6xx_io_desc, ARRAY_SIZE(spear6xx_io_desc));
-
-       /* This will initialize clock framework */
-       spear6xx_clk_init();
 }
 
 static void __init spear6xx_timer_init(void)
@@ -66,6 +63,8 @@ static void __init spear6xx_timer_init(void)
        char pclk_name[] = "pll3_48m_clk";
        struct clk *gpt_clk, *pclk;
 
+       spear6xx_clk_init();
+
        /* get the system timer clock */
        gpt_clk = clk_get_sys("gpt0", NULL);
        if (IS_ERR(gpt_clk)) {