projects
/
openwrt
/
staging
/
stintel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3e7b461
)
ramips: raeth: force link down in ramips_phy_stop
author
Gabor Juhos
<juhosg@openwrt.org>
Wed, 15 Feb 2012 13:47:52 +0000
(13:47 +0000)
committer
Gabor Juhos
<juhosg@openwrt.org>
Wed, 15 Feb 2012 13:47:52 +0000
(13:47 +0000)
SVN-Revision: 30550
target/linux/ramips/files/drivers/net/ramips.c
patch
|
blob
|
history
diff --git
a/target/linux/ramips/files/drivers/net/ramips.c
b/target/linux/ramips/files/drivers/net/ramips.c
index 9f76779af45d26c69412ca2a7cf3397cc8d5e0da..6fa115135d33cc3fd5fa5ef810647152d4f284d0 100644
(file)
--- 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