diff options
author | Matteo Croce <rootkit85@yahoo.it> | 2011-05-17 11:12:56 +0000 |
---|---|---|
committer | Matteo Croce <rootkit85@yahoo.it> | 2011-05-17 11:12:56 +0000 |
commit | 4deecea26bbb867dc3152577fb13db2944460aeb (patch) | |
tree | 4abc3c330ee3bddb40ffe268bb3139616ee4dacb /target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_phy.c | |
parent | 8c2de891a9e02b8c461e32e2783069a413387fc6 (diff) | |
download | upstream-4deecea26bbb867dc3152577fb13db2944460aeb.tar.gz upstream-4deecea26bbb867dc3152577fb13db2944460aeb.tar.bz2 upstream-4deecea26bbb867dc3152577fb13db2944460aeb.zip |
ar71xx: detect link on LAN ports
SVN-Revision: 26922
Diffstat (limited to 'target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_phy.c')
-rw-r--r-- | target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_phy.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_phy.c b/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_phy.c index d0bae03b13..75500277f4 100644 --- a/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_phy.c +++ b/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_phy.c @@ -48,9 +48,9 @@ void ag71xx_phy_start(struct ag71xx *ag) if (ag->phy_dev) { phy_start(ag->phy_dev); + } else if (pdata->has_ar7240_switch) { + ag71xx_ar7240_start(ag); } else { - if (pdata->has_ar7240_switch) - ag71xx_ar7240_start(ag); ag->link = 1; ag71xx_link_adjust(ag); } |