mirror of https://github.com/hak5/openwrt.git
parent
3e7b461431
commit
b3b79365f3
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue