1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2025-04-21 12:27:27 +03:00

[adm5120] calling of prom_detect_board is needed only when we still don't know the board

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7736 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
juhosg
2007-06-26 19:41:00 +00:00
parent 389a87145d
commit a5ce51c5c3
2 changed files with 7 additions and 4 deletions

View File

@@ -32,7 +32,7 @@
#include <asm/mach-adm5120/adm5120_info.h>
static char **prom_envp;
static char **prom_envp = NULL;
void setup_prom_printf(int);
void prom_printf(char *, ...);
@@ -106,7 +106,9 @@ void __init prom_init(void)
{
char *cmd;
prom_envp = (char **)fw_arg2;
if ((fw_arg2 & 3) == 0) {
prom_envp = (char **)fw_arg2;
}
adm5120_info_init();