mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-04-21 12:27:27 +03:00
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
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user