ARM: highbank: compile misc_init_r only if CONFIG_MISC_INIT_R

Compile misc_init_r only if CONFIG_MISC_INIT_R is enabled.

Signed-off-by: Rob Herring <rob.herring@calxeda.com>
This commit is contained in:
Rob Herring 2013-06-12 22:24:53 -05:00 committed by Albert ARIBAUD
parent 76c3999db4
commit 953950234d
1 changed files with 2 additions and 0 deletions

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