Skip to contentSkip to conversation

ARM: shmobile: sh73a0: disable legacy clock initialization

PATCH Laurent Pinchart 1 participant 1 message Nov 5, 2014 SuperH

lore
Share & tools
lore

Laurent Pinchart

author Acked-by
#0 lore raw

Hi Ulrich,

Thank you for the patch.

Quoted 3 lines · On Tuesday 28 October 2014 18:02:15 Ulrich Hecht wrote:

Disables sh73a0_clock_init() if CCF is enabled.

Quoted 28 lines
---
 arch/arm/mach-shmobile/setup-sh73a0.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
(quoted diff) +0 -0

b/arch/arm/mach-shmobile/setup-sh73a0.c index 2955a08..3134bc1 100644

arch/arm/mach-shmobile/setup-sh73a0.c +4 -1
@@ -742,7 +742,9 @@ void __init __weak sh73a0_register_twd(void) { }
 void __init sh73a0_earlytimer_init(void)
 {
 	shmobile_init_delay();
+#ifndef CONFIG_COMMON_CLK
 	sh73a0_clock_init();
+#endif
 	shmobile_earlytimer_init();
 	sh73a0_register_twd();
 }
@@ -761,8 +763,9 @@ void __init sh73a0_add_early_devices(void)
 void __init sh73a0_add_standard_devices_dt(void)
 {
 	/* clocks are setup late during boot in the case of DT */
+#ifndef CONFIG_COMMON_CLK
 	sh73a0_clock_init();
-
+#endif
 	of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
 }
Signature · 3 lines
Regards,

Laurent Pinchart