]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ARM: at91: prepare common clk transition for sam9x5 SoCs
authorBoris BREZILLON <boris.brezillon@free-electrons.com>
Mon, 12 May 2014 16:23:34 +0000 (18:23 +0200)
committerNicolas Ferre <nicolas.ferre@atmel.com>
Thu, 22 May 2014 16:03:13 +0000 (18:03 +0200)
This patch encloses sam9x5 old clk registration in
"#if defined(CONFIG_OLD_CLK_AT91) #endif" sections.

Signed-off-by: Boris BREZILLON <boris.brezillon@free-electrons.com>
Acked-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
arch/arm/mach-at91/at91sam9x5.c

index 9ad781d5ee7cc9d5cd76650d395dffac9c98e0ca..028268ff3722c3589009cd81a7dab38186cefdc8 100644 (file)
 #include "board.h"
 #include "soc.h"
 #include "generic.h"
-#include "clock.h"
 #include "sam9_smc.h"
 
+#if defined(CONFIG_OLD_CLK_AT91)
+#include "clock.h"
 /* --------------------------------------------------------------------
  *  Clocks
  * -------------------------------------------------------------------- */
@@ -313,6 +314,9 @@ static void __init at91sam9x5_register_clocks(void)
        clk_register(&pck0);
        clk_register(&pck1);
 }
+#else
+#define at91sam9x5_register_clocks     NULL
+#endif
 
 /* --------------------------------------------------------------------
  *  AT91SAM9x5 processor initialization