Patchwork [U-Boot,v2] ARM: highbank: compile misc_init_r only if CONFIG_MISC_INIT_R

login
register
mail settings
Submitter Rob Herring
Date May 21, 2013, 9:33 p.m.
Message ID <1369172027-3147-1-git-send-email-robherring2@gmail.com>
Download mbox | patch
Permalink /patch/245408/
State Changes Requested
Delegated to: Albert ARIBAUD
Headers show

Comments

Rob Herring - May 21, 2013, 9:33 p.m.
From: Rob Herring <rob.herring@calxeda.com>

Compile misc_init_r only if CONFIG_MISC_INIT_R is enabled.

Signed-off-by: Rob Herring <rob.herring@calxeda.com>
---
 board/highbank/highbank.c | 2 ++
 1 file changed, 2 insertions(+)
Albert ARIBAUD - June 11, 2013, 8:22 a.m.
Hi Rob,

On Tue, 21 May 2013 16:33:44 -0500, Rob Herring <robherring2@gmail.com>
wrote:

> From: Rob Herring <rob.herring@calxeda.com>
> 
> Compile misc_init_r only if CONFIG_MISC_INIT_R is enabled.
> 
> Signed-off-by: Rob Herring <rob.herring@calxeda.com>
> ---
>  board/highbank/highbank.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/board/highbank/highbank.c b/board/highbank/highbank.c
> index b224aae..b0c20fe 100644
> --- a/board/highbank/highbank.c
> +++ b/board/highbank/highbank.c
> @@ -62,6 +62,7 @@ int board_eth_init(bd_t *bis)
>  	return rc;
>  }
>  
> +#ifdef CONFIG_MISC_INIT_R
>  int misc_init_r(void)
>  {
>  	char envbuffer[16];
> @@ -83,6 +84,7 @@ int misc_init_r(void)
>  
>  	return 0;
>  }
> +#endif
>  
>  int dram_init(void)
>  {

This patch probably beloings to a series, only it lacks history and the
post subject lacks nn/NN indications as well.

Ditto for:

http://patchwork.ozlabs.org/patch/245407/
http://patchwork.ozlabs.org/patch/245411/
http://patchwork.ozlabs.org/patch/245412/

Amicalement,

Patch

diff --git a/board/highbank/highbank.c b/board/highbank/highbank.c
index b224aae..b0c20fe 100644
--- a/board/highbank/highbank.c
+++ b/board/highbank/highbank.c
@@ -62,6 +62,7 @@  int board_eth_init(bd_t *bis)
 	return rc;
 }
 
+#ifdef CONFIG_MISC_INIT_R
 int misc_init_r(void)
 {
 	char envbuffer[16];
@@ -83,6 +84,7 @@  int misc_init_r(void)
 
 	return 0;
 }
+#endif
 
 int dram_init(void)
 {