aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Jacques Hiblot <jjhiblot@traphandler.com>2014-03-03 05:06:01 -0500
committerNicolas Ferre <nicolas.ferre@atmel.com>2014-03-12 09:36:15 -0400
commit02c5777921fdb9bfd08da1d0e8150a785cf9003a (patch)
tree4d35c07d847a7f76becbe91a26ca8f71d0a8f46b
parentb646b9cf5bbaf81f7476021fd877f20ba1ec7860 (diff)
ARM: at91: prepare common clk transition for sam9261 SoC
This patch encloses sam9261 old clk registration in "#if defined(CONFIG_OLD_CLK_AT91) #endif" sections. Signed-off-by: Jean-Jacques Hiblot <jjhiblot@traphandler.com> Acked-by: Alexandre Belloni <alexandre.belloni@free-electrons.com> Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
-rw-r--r--arch/arm/mach-at91/at91sam9261.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/arch/arm/mach-at91/at91sam9261.c b/arch/arm/mach-at91/at91sam9261.c
index 5c9058135e64..3345a2b31015 100644
--- a/arch/arm/mach-at91/at91sam9261.c
+++ b/arch/arm/mach-at91/at91sam9261.c
@@ -25,10 +25,12 @@
25#include "at91_rstc.h" 25#include "at91_rstc.h"
26#include "soc.h" 26#include "soc.h"
27#include "generic.h" 27#include "generic.h"
28#include "clock.h"
29#include "sam9_smc.h" 28#include "sam9_smc.h"
30#include "pm.h" 29#include "pm.h"
31 30
31#if defined(CONFIG_OLD_CLK_AT91)
32#include "clock.h"
33
32/* -------------------------------------------------------------------- 34/* --------------------------------------------------------------------
33 * Clocks 35 * Clocks
34 * -------------------------------------------------------------------- */ 36 * -------------------------------------------------------------------- */
@@ -264,7 +266,9 @@ static void __init at91sam9261_register_clocks(void)
264 clk_register(&hck0); 266 clk_register(&hck0);
265 clk_register(&hck1); 267 clk_register(&hck1);
266} 268}
267 269#else
270#define at91sam9261_register_clocks NULL
271#endif
268/* -------------------------------------------------------------------- 272/* --------------------------------------------------------------------
269 * GPIO 273 * GPIO
270 * -------------------------------------------------------------------- */ 274 * -------------------------------------------------------------------- */