@@ -5005,7 +5005,7 @@ il4965_ucode_callback(const struct firmware *ucode_raw, void *context)
/* We have our copies now, allow OS release its copies */
release_firmware(ucode_raw);
- complete(&il->_4965.firmware_loading_complete);
+ fw_loading_done(il->_4965.fw_st);
return;
try_again:
@@ -5019,7 +5019,7 @@ err_pci_alloc:
IL_ERR("failed to allocate pci memory\n");
il4965_dealloc_ucode_pci(il);
out_unbind:
- complete(&il->_4965.firmware_loading_complete);
+ fw_loading_done(il->_4965.fw_st);
device_release_driver(&il->pci_dev->dev);
release_firmware(ucode_raw);
}
@@ -6678,7 +6678,7 @@ il4965_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
il_power_initialize(il);
- init_completion(&il->_4965.firmware_loading_complete);
+ firmware_stat_init(&il->_4965.fw_st);
err = il4965_request_firmware(il, true);
if (err)
@@ -6716,7 +6716,7 @@ il4965_pci_remove(struct pci_dev *pdev)
if (!il)
return;
- wait_for_completion(&il->_4965.firmware_loading_complete);
+ fw_loading_wait(il->_4965.fw_st);
D_INFO("*** UNLOAD DRIVER ***\n");
@@ -32,6 +32,7 @@
#include <linux/leds.h>
#include <linux/wait.h>
#include <linux/io.h>
+#include <linux/firmware.h>
#include <net/mac80211.h>
#include <net/ieee80211_radiotap.h>
@@ -1357,7 +1358,7 @@ struct il_priv {
bool last_phy_res_valid;
u32 ampdu_ref;
- struct completion firmware_loading_complete;
+ struct firmware_stat fw_st;
/*
* chain noise reset and gain commands are the