ARM: highbank: compile misc_init_r only if CONFIG_MISC_INIT_R
authorRob Herring <rob.herring@calxeda.com>
Thu, 13 Jun 2013 03:24:53 +0000 (22:24 -0500)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Thu, 25 Jul 2013 06:16:21 +0000 (08:16 +0200)
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

index b224aae41b4a0550b42712d5a8615aba98fd6fb0..b0c20fe56d68ee4518d0946ee45ba62dcf8e69bb 100644 (file)
@@ -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)
 {