MFC: r208117
Fix a mismerge in r206001 (MFC'ed to stable/8 in r206211). PR: 146614 Approved by: jfv (implicit)
This commit is contained in:
parent
78c1f0d3c8
commit
ed6b099ba7
@ -705,6 +705,9 @@ em_detach(device_t dev)
|
||||
ether_poll_deregister(ifp);
|
||||
#endif
|
||||
|
||||
if (adapter->led_dev != NULL)
|
||||
led_destroy(adapter->led_dev);
|
||||
|
||||
EM_CORE_LOCK(adapter);
|
||||
adapter->in_detach = 1;
|
||||
em_stop(adapter);
|
||||
@ -774,9 +777,6 @@ em_resume(device_t dev)
|
||||
struct adapter *adapter = device_get_softc(dev);
|
||||
struct ifnet *ifp = adapter->ifp;
|
||||
|
||||
if (adapter->led_dev != NULL)
|
||||
led_destroy(adapter->led_dev);
|
||||
|
||||
EM_CORE_LOCK(adapter);
|
||||
em_init_locked(adapter);
|
||||
em_init_manageability(adapter);
|
||||
|
Loading…
x
Reference in New Issue
Block a user