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 | fec8e48603f885f8e70ae67a7f4e71a3b53e292d (patch) | |
tree | 259e7107b64aaddae82b9fc12db5e211f66be900 /target/linux/generic-2.6/files/drivers | |
parent | 5232331c981742da7fc3423a2e16f44247f10ba1 (diff) | |
download | upstream-fec8e48603f885f8e70ae67a7f4e71a3b53e292d.tar.gz upstream-fec8e48603f885f8e70ae67a7f4e71a3b53e292d.tar.bz2 upstream-fec8e48603f885f8e70ae67a7f4e71a3b53e292d.zip |
ar71xx: make the rtl8306 switch attach to eth0 instead of eth1 on the wrt160nl, fixes wan port detection (#6309)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18699 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/generic-2.6/files/drivers')
-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); |