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:
@@ -206,7 +206,7 @@ static struct adm5120_board __initdata adm5120_boards[] = {
|
||||
.name = "Infineon EASY 83000",
|
||||
.mach_type = MACH_ADM5120_EASY83000,
|
||||
.has_usb = 0,
|
||||
.iface_num = 0,
|
||||
.iface_num = 6,
|
||||
.flash0_size = 4*1024*1024,
|
||||
},
|
||||
{
|
||||
@@ -880,7 +880,8 @@ static void __init adm5120_detect_board(void)
|
||||
if (t == MACH_ADM5120_UNKNOWN)
|
||||
t = uboot_detect_board();
|
||||
} else {
|
||||
t = prom_detect_board();
|
||||
if (t == MACH_ADM5120_UNKNOWN)
|
||||
t = prom_detect_board();
|
||||
}
|
||||
|
||||
for (board = adm5120_boards; board->mach_type != MACH_ADM5120_UNKNOWN;
|
||||
|
||||
Reference in New Issue
Block a user