ARM: shmobile: rcar-gen2: Stop passing mode pins state to clock driver
authorGeert Uytterhoeven <geert+renesas@glider.be>
Tue, 7 Jul 2015 13:06:34 +0000 (15:06 +0200)
committerGeert Uytterhoeven <geert+renesas@glider.be>
Wed, 2 Nov 2016 19:44:07 +0000 (20:44 +0100)
Now the R-Car Gen2 CPG clock driver obtains the state of the mode pins
from the R-Car RST driver, there's no longer a need to pass this state
explicitly. Hence we can just call of_clk_init() instead.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Acked-by: Dirk Behme <dirk.behme@de.bosch.com>
arch/arm/mach-shmobile/setup-rcar-gen2.c

index afb9fdcd3d9084e26747fb1b34eb226493b43401..b527258e0a62e806b911ddf10612af41b30dd4c9 100644 (file)
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  */
 
-#include <linux/clk/renesas.h>
+#include <linux/clk-provider.h>
 #include <linux/clocksource.h>
 #include <linux/device.h>
 #include <linux/dma-contiguous.h>
@@ -71,7 +71,6 @@ static unsigned int __init get_extal_freq(void)
 
 void __init rcar_gen2_timer_init(void)
 {
-       u32 mode = rcar_gen2_read_mode_pins();
 #ifdef CONFIG_ARM_ARCH_TIMER
        void __iomem *base;
        u32 freq;
@@ -130,7 +129,7 @@ void __init rcar_gen2_timer_init(void)
        iounmap(base);
 #endif /* CONFIG_ARM_ARCH_TIMER */
 
-       rcar_gen2_clocks_init(mode);
+       of_clk_init(NULL);
        clocksource_probe();
 }