diff options
author | Florian Fainelli <florian@openwrt.org> | 2007-03-24 21:31:13 +0000 |
---|---|---|
committer | Florian Fainelli <florian@openwrt.org> | 2007-03-24 21:31:13 +0000 |
commit | 15faa4e3a6e9d7a7c69f1e390e1692bb4679abe0 (patch) | |
tree | e57f5c44202fb5681902aec626021654cd554cef /target/linux/adm5120-2.6/files/drivers/net/adm5120sw.c | |
parent | 95f410c30b74c21ff1b77f36debc56038c969e15 (diff) | |
download | master-187ad058-15faa4e3a6e9d7a7c69f1e390e1692bb4679abe0.tar.gz master-187ad058-15faa4e3a6e9d7a7c69f1e390e1692bb4679abe0.tar.bz2 master-187ad058-15faa4e3a6e9d7a7c69f1e390e1692bb4679abe0.zip |
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
Diffstat (limited to 'target/linux/adm5120-2.6/files/drivers/net/adm5120sw.c')
-rw-r--r-- | target/linux/adm5120-2.6/files/drivers/net/adm5120sw.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/target/linux/adm5120-2.6/files/drivers/net/adm5120sw.c b/target/linux/adm5120-2.6/files/drivers/net/adm5120sw.c index 935016c3a1..e4a764f491 100644 --- a/target/linux/adm5120-2.6/files/drivers/net/adm5120sw.c +++ b/target/linux/adm5120-2.6/files/drivers/net/adm5120sw.c @@ -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; |