From 7664846bbbccee0d5fa6b5f9d4a8ad0f07ff29d7 Mon Sep 17 00:00:00 2001 From: Peng Fan Date: Fri, 30 Oct 2015 17:30:02 +0800 Subject: [PATCH] common: Simplify get_clocks() #ifdef MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit get_clocks is wrapped by CONFIG_FSL_CLK and CONFIG_M68K in seperate piece code. They can be merged into one snippet. Signed-off-by: Peng Fan Cc: Tom Rini Cc: Simon Glass Cc: Bin Meng Cc: Alexey Brodkin Cc: "angelo@sysam.it" Cc: Daniel Schwierzeck Cc: Stephen Warren Cc: "Andreas Bießmann" Reviewed-by: Simon Glass Acked-by: Angelo Dureghello --- common/board_f.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/common/board_f.c b/common/board_f.c index 725eb18427..ed513058ee 100644 --- a/common/board_f.c +++ b/common/board_f.c @@ -808,10 +808,7 @@ static init_fnc_t init_sequence_f[] = { #if defined(CONFIG_BOARD_POSTCLK_INIT) board_postclk_init, #endif -#ifdef CONFIG_SYS_FSL_CLK - get_clocks, -#endif -#ifdef CONFIG_M68K +#if defined(CONFIG_SYS_FSL_CLK) || defined(CONFIG_M68K) get_clocks, #endif env_init, /* initialize environment */ -- 2.39.5