diff options
author | Felix Fietkau <nbd@openwrt.org> | 2009-12-08 14:06:18 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2009-12-08 14:06:18 +0000 |
commit | ddc2e2270b1cd5596f8c83710625685f96d93867 (patch) | |
tree | 838f024f8b26b397b7946cc57e0f365b1f681e9f /target/linux/generic-2.6 | |
parent | df35ee622f1c7528dfa86f537cdb8a8c58ead684 (diff) | |
download | master-31e0f0ae-ddc2e2270b1cd5596f8c83710625685f96d93867.tar.gz master-31e0f0ae-ddc2e2270b1cd5596f8c83710625685f96d93867.tar.bz2 master-31e0f0ae-ddc2e2270b1cd5596f8c83710625685f96d93867.zip |
ar71xx: make the rtl8306 switch attach to eth0 instead of eth1 on the wrt160nl, fixes wan port detection (#6309)
SVN-Revision: 18699
Diffstat (limited to 'target/linux/generic-2.6')
-rw-r--r-- | target/linux/generic-2.6/files/drivers/net/phy/rtl8306.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/target/linux/generic-2.6/files/drivers/net/phy/rtl8306.c b/target/linux/generic-2.6/files/drivers/net/phy/rtl8306.c index 259ff5006f..5c8e81f79d 100644 --- a/target/linux/generic-2.6/files/drivers/net/phy/rtl8306.c +++ b/target/linux/generic-2.6/files/drivers/net/phy/rtl8306.c @@ -913,6 +913,9 @@ rtl8306_fixup(struct phy_device *pdev) struct rtl_priv priv; u16 chipid; + if (pdev->addr != 0) + return 0; + priv.page = -1; priv.bus = pdev->bus; chipid = rtl_get(&priv.dev, RTL_REG_CHIPID); |