[U-Boot] [PATCH v2 09/10] ARM: highbank: compile misc_init_r only if CONFIG_MISC_INIT_R

Rob Herring robherring2 at gmail.com
Thu Jun 13 05:24:53 CEST 2013


From: Rob Herring <rob.herring at calxeda.com>

Compile misc_init_r only if CONFIG_MISC_INIT_R is enabled.

Signed-off-by: Rob Herring <rob.herring at calxeda.com>
---
v2:
- Reword commit message

 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)
 {
-- 
1.8.1.2



More information about the U-Boot mailing list