[U-Boot] [PATCH V2] common: Simplify get_clocks() #ifdef

Peng Fan Peng.Fan at freescale.com
Fri Oct 30 10:30:02 CET 2015


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 <Peng.Fan at freescale.com>
Cc: Tom Rini <trini at konsulko.com>
Cc: Simon Glass <sjg at chromium.org>
Cc: Bin Meng <bmeng.cn at gmail.com>
Cc: Alexey Brodkin <abrodkin at synopsys.com>
Cc: "angelo at sysam.it" <angelo at sysam.it>
Cc: Daniel Schwierzeck <daniel.schwierzeck at gmail.com>
Cc: Stephen Warren <swarren at nvidia.com>
Cc: "Andreas Bießmann" <andreas.devel at googlemail.com>
Reviewed-by: Simon Glass <sjg at chromium.org>
---

Changes V2:
 Refine patch subject as Simon suggested.
 Add Simon's Reviewed-by

 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 486e828..7bc05b1 100644
--- a/common/board_f.c
+++ b/common/board_f.c
@@ -806,10 +806,7 @@ static init_fnc_t init_sequence_f[] = {
 #if defined(CONFIG_BOARD_POSTCLK_INIT)
 	board_postclk_init,
 #endif
-#ifdef CONFIG_FSL_CLK
-	get_clocks,
-#endif
-#ifdef CONFIG_M68K
+#if defined(CONFIG_FSL_CLK) || defined(CONFIG_M68K)
 	get_clocks,
 #endif
 	env_init,		/* initialize environment */
-- 
1.8.4




More information about the U-Boot mailing list