|
@@ -12108,12 +12108,10 @@ static int tg3_set_wol(struct net_device *dev, struct ethtool_wolinfo *wol)
|
|
|
|
|
|
device_set_wakeup_enable(dp, wol->wolopts & WAKE_MAGIC);
|
|
|
|
|
|
- spin_lock_bh(&tp->lock);
|
|
|
if (device_may_wakeup(dp))
|
|
|
tg3_flag_set(tp, WOL_ENABLE);
|
|
|
else
|
|
|
tg3_flag_clear(tp, WOL_ENABLE);
|
|
|
- spin_unlock_bh(&tp->lock);
|
|
|
|
|
|
return 0;
|
|
|
}
|