75d8212
[openwrt/staging/stintel.git] /
1 --- a/drivers/net/wireless/mwl8k.c
2 +++ b/drivers/net/wireless/mwl8k.c
3 @@ -6261,6 +6261,8 @@ static int mwl8k_probe(struct pci_dev *p
4
5 priv->running_bsses = 0;
6
7 + wait_for_completion(&priv->firmware_loading_complete);
8 +
9 return rc;
10
11 err_stop_firmware:
12 @@ -6294,8 +6296,6 @@ static void mwl8k_remove(struct pci_dev
13 return;
14 priv = hw->priv;
15
16 - wait_for_completion(&priv->firmware_loading_complete);
17 -
18 if (priv->fw_state == FW_STATE_ERROR) {
19 mwl8k_hw_reset(priv);
20 goto unmap;