[U-Boot] [PATCH 09/10] ARM: highbank: fix build with CONFIG_MISC_INIT_R turned off

Albert ARIBAUD albert.u.boot at aribaud.net
Wed May 15 22:31:50 CEST 2013


Hi Rob,

On Wed, 15 May 2013 14:56:15 -0500, Rob Herring <robherring2 at gmail.com>
wrote:

> From: Rob Herring <rob.herring at calxeda.com>
> 
> Signed-off-by: Rob Herring <rob.herring at calxeda.com>

This commit could have more meaningful summary, such as
"compile misc_init_r only if CONFIG_MISC_INIT_R"

> ---
>  board/highbank/highbank.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/board/highbank/highbank.c b/board/highbank/highbank.c
> index 4cc4b1c..82ebeea 100644
> --- a/board/highbank/highbank.c
> +++ b/board/highbank/highbank.c
> @@ -60,6 +60,7 @@ int board_eth_init(bd_t *bis)
>  	return rc;
>  }
>  
> +#ifdef CONFIG_MISC_INIT_R
>  int misc_init_r(void)
>  {
>  	char envbuffer[16];
> @@ -81,6 +82,7 @@ int misc_init_r(void)
>  
>  	return 0;
>  }
> +#endif
>  
>  int dram_init(void)
>  {

Amicalement,
-- 
Albert.


More information about the U-Boot mailing list