From: Holger Brunck Date: Tue, 17 Nov 2015 09:53:29 +0000 (+0100) Subject: km/powerpc: remove unneeded defines X-Git-Tag: v2016.01-rc2~258 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=fc882a310d8c22bf7c366336553acab4385b1284;p=u-boot km/powerpc: remove unneeded defines We use CONFIG_OF_LIBFDT and CONFIG_OF_BOARD_SETUP on all our powerpc targets, so there is no need to check these defines within our C code. Signed-off-by: Holger Brunck Signed-off-by: Valentin Longchamp --- diff --git a/board/keymile/km82xx/km82xx.c b/board/keymile/km82xx/km82xx.c index cc9a7c9a8e..70f816be7e 100644 --- a/board/keymile/km82xx/km82xx.c +++ b/board/keymile/km82xx/km82xx.c @@ -11,10 +11,7 @@ #include #include -#if defined(CONFIG_OF_BOARD_SETUP) && defined(CONFIG_OF_LIBFDT) #include -#endif - #include #include "../common/common.h" @@ -465,14 +462,13 @@ static void setports(int gpio) } } #endif -#if defined(CONFIG_OF_BOARD_SETUP) && defined(CONFIG_OF_LIBFDT) -int ft_board_setup(void *blob, bd_t *bd) + +void ft_board_setup(void *blob, bd_t *bd) { ft_cpu_setup(blob, bd); return 0; } -#endif /* defined(CONFIG_OF_BOARD_SETUP) && defined(CONFIG_OF_LIBFDT) */ #if defined(CONFIG_MGCOGE3NE) int get_testpin(void) diff --git a/board/keymile/km83xx/km83xx.c b/board/keymile/km83xx/km83xx.c index 89e9e1e57c..1164c2e34f 100644 --- a/board/keymile/km83xx/km83xx.c +++ b/board/keymile/km83xx/km83xx.c @@ -361,14 +361,12 @@ int checkboard(void) return 0; } -#if defined(CONFIG_OF_BOARD_SETUP) -int ft_board_setup(void *blob, bd_t *bd) +void ft_board_setup(void *blob, bd_t *bd) { ft_cpu_setup(blob, bd); return 0; } -#endif #if defined(CONFIG_HUSH_INIT_VAR) int hush_init_var(void)