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

Do not register more than 2 ethernet porst for CFE based devices (i.e : Compex WP54G-wrt)

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6683 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
florian
2007-03-24 21:31:13 +00:00
parent 51eaa39dca
commit 58531e4910
3 changed files with 13 additions and 2 deletions

View File

@@ -390,6 +390,9 @@ static int __init adm5120_sw_init(void)
/* MII port? */
if (adm5120_get_reg(ADM5120_CODE) & ADM5120_CODE_PQFP)
adm5120_nrdevs = 5;
/* CFE based devices only have two enet ports */
else if (boot_loader_type == CFE)
adm5120_nrdevs = 2
else
adm5120_nrdevs = 6;