diff options
author | juhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2012-02-15 13:47:52 +0000 |
---|---|---|
committer | juhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2012-02-15 13:47:52 +0000 |
commit | d0794e0d355f9bafe98698c79637d6ba1f4a416b (patch) | |
tree | 4f210b7cf2973f173c5858248f1c34100bfbaf21 /target/linux/ramips/files/drivers | |
parent | 815334db9cace1915630583ed0457995c3604907 (diff) |
ramips: raeth: force link down in ramips_phy_stop
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@30550 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ramips/files/drivers')
-rw-r--r-- | target/linux/ramips/files/drivers/net/ramips.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/target/linux/ramips/files/drivers/net/ramips.c b/target/linux/ramips/files/drivers/net/ramips.c index 9f76779af..6fa115135 100644 --- a/target/linux/ramips/files/drivers/net/ramips.c +++ b/target/linux/ramips/files/drivers/net/ramips.c @@ -424,14 +424,13 @@ ramips_phy_stop(struct raeth_priv *re) { unsigned long flags; - if (re->phy_dev) { + if (re->phy_dev) phy_stop(re->phy_dev); - } else { - spin_lock_irqsave(&re->phy_lock, flags); - re->link = 0; - ramips_link_adjust(re); - spin_unlock_irqrestore(&re->phy_lock, flags); - } + + spin_lock_irqsave(&re->phy_lock, flags); + re->link = 0; + ramips_link_adjust(re); + spin_unlock_irqrestore(&re->phy_lock, flags); } #else static inline int |