Changeset 30550


Ignore:
Timestamp:
2012-02-15T14:47:52+01:00 (6 years ago)
Author:
juhosg
Message:

ramips: raeth: force link down in ramips_phy_stop

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/ramips/files/drivers/net/ramips.c

    r30549 r30550  
    425425        unsigned long flags; 
    426426 
    427         if (re->phy_dev) { 
     427        if (re->phy_dev) 
    428428                phy_stop(re->phy_dev); 
    429         } else { 
    430                 spin_lock_irqsave(&re->phy_lock, flags); 
    431                 re->link = 0; 
    432                 ramips_link_adjust(re); 
    433                 spin_unlock_irqrestore(&re->phy_lock, flags); 
    434         } 
     429 
     430        spin_lock_irqsave(&re->phy_lock, flags); 
     431        re->link = 0; 
     432        ramips_link_adjust(re); 
     433        spin_unlock_irqrestore(&re->phy_lock, flags); 
    435434} 
    436435#else 
Note: See TracChangeset for help on using the changeset viewer.