[PATCH v3 04/15] ARM: at91: prepare common clk transition for sam9261 SoC
From: Jean-Christophe PLAGNIOL-VILLARD <hidden>
Date: 2014-02-07 08:25:37
On 16:57 Thu 23 Jan , Jean-Jacques Hiblot wrote:
quoted hunk ↗ jump to hunk
This patch encloses sam9261 old clk registration in "#if defined(CONFIG_OLD_CLK_AT91) #endif" sections. Signed-off-by: Jean-Jacques Hiblot <redacted> --- arch/arm/mach-at91/at91sam9261.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-)diff --git a/arch/arm/mach-at91/at91sam9261.c b/arch/arm/mach-at91/at91sam9261.c index 6a2c869..2c0e940 100644 --- a/arch/arm/mach-at91/at91sam9261.c +++ b/arch/arm/mach-at91/at91sam9261.c@@ -25,10 +25,12 @@ #include "at91_rstc.h" #include "soc.h" #include "generic.h" -#include "clock.h" #include "sam9_smc.h" #include "pm.h" +#if defined(CONFIG_OLD_CLK_AT91) +#include "clock.h" + /* -------------------------------------------------------------------- * Clocks * -------------------------------------------------------------------- */@@ -262,7 +264,7 @@ static void __init at91sam9261_register_clocks(void) clk_register(&hck0); clk_register(&hck1); } -
do this here #else #define at91sam9261_register_clocks NULL
quoted hunk ↗ jump to hunk
+#endif /* -------------------------------------------------------------------- * GPIO * -------------------------------------------------------------------- */@@ -362,6 +364,8 @@ AT91_SOC_START(at91sam9261) .extern_irq = (1 << AT91SAM9261_ID_IRQ0) | (1 << AT91SAM9261_ID_IRQ1) | (1 << AT91SAM9261_ID_IRQ2), .ioremap_registers = at91sam9261_ioremap_registers, +#if defined(CONFIG_OLD_CLK_AT91) .register_clocks = at91sam9261_register_clocks, +#endif
so no ifdef here
.init = at91sam9261_initialize, AT91_SOC_END -- 1.8.5.2