|
@@ -695,8 +695,7 @@ static void bgx_lmac_disable(struct bgx *bgx, u8 lmacid)
|
|
|
lmac = &bgx->lmac[lmacid];
|
|
lmac = &bgx->lmac[lmacid];
|
|
|
if (lmac->check_link) {
|
|
if (lmac->check_link) {
|
|
|
/* Destroy work queue */
|
|
/* Destroy work queue */
|
|
|
- cancel_delayed_work(&lmac->dwork);
|
|
|
|
|
- flush_workqueue(lmac->check_link);
|
|
|
|
|
|
|
+ cancel_delayed_work_sync(&lmac->dwork);
|
|
|
destroy_workqueue(lmac->check_link);
|
|
destroy_workqueue(lmac->check_link);
|
|
|
}
|
|
}
|
|
|
|
|
|