aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-ucode.c
diff options
context:
space:
mode:
authorDon Fry <donald.h.fry@intel.com>2012-02-06 18:57:40 -0500
committerWey-Yi Guy <wey-yi.w.guy@intel.com>2012-02-17 13:28:01 -0500
commit737805ff7a15105b77d83c7c3b17fa0868cb864e (patch)
treeb42fb7fb3adea04f5383bf6bc081cc59d9c2375d /drivers/net/wireless/iwlwifi/iwl-ucode.c
parentf6fd51d9a5abc9aa90246ddc82bbca376c06462e (diff)
iwlwifi: move firmware_name to iwl_nic
Delete firmware_name from iwl_priv and use iwl_nic instead. Signed-off-by: Don Fry <donald.h.fry@intel.com> Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-ucode.c')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-ucode.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-ucode.c b/drivers/net/wireless/iwlwifi/iwl-ucode.c
index c3ac2cc7a795..0ba8ea910274 100644
--- a/drivers/net/wireless/iwlwifi/iwl-ucode.c
+++ b/drivers/net/wireless/iwlwifi/iwl-ucode.c
@@ -712,14 +712,14 @@ int __must_check iwl_request_firmware(struct iwl_priv *priv, bool first)
712 return -ENOENT; 712 return -ENOENT;
713 } 713 }
714 714
715 sprintf(priv->firmware_name, "%s%s%s", name_pre, tag, ".ucode"); 715 sprintf(nic->firmware_name, "%s%s%s", name_pre, tag, ".ucode");
716 716
717 IWL_DEBUG_INFO(priv, "attempting to load firmware %s'%s'\n", 717 IWL_DEBUG_INFO(priv, "attempting to load firmware %s'%s'\n",
718 (nic->fw_index == UCODE_EXPERIMENTAL_INDEX) 718 (nic->fw_index == UCODE_EXPERIMENTAL_INDEX)
719 ? "EXPERIMENTAL " : "", 719 ? "EXPERIMENTAL " : "",
720 priv->firmware_name); 720 nic->firmware_name);
721 721
722 return request_firmware_nowait(THIS_MODULE, 1, priv->firmware_name, 722 return request_firmware_nowait(THIS_MODULE, 1, nic->firmware_name,
723 trans(priv)->dev, 723 trans(priv)->dev,
724 GFP_KERNEL, priv, iwl_ucode_callback); 724 GFP_KERNEL, priv, iwl_ucode_callback);
725} 725}
@@ -1036,12 +1036,12 @@ static void iwl_ucode_callback(const struct firmware *ucode_raw, void *context)
1036 if (nic->fw_index <= api_ok) 1036 if (nic->fw_index <= api_ok)
1037 IWL_ERR(priv, 1037 IWL_ERR(priv,
1038 "request for firmware file '%s' failed.\n", 1038 "request for firmware file '%s' failed.\n",
1039 priv->firmware_name); 1039 nic->firmware_name);
1040 goto try_again; 1040 goto try_again;
1041 } 1041 }
1042 1042
1043 IWL_DEBUG_INFO(priv, "Loaded firmware file '%s' (%zd bytes).\n", 1043 IWL_DEBUG_INFO(priv, "Loaded firmware file '%s' (%zd bytes).\n",
1044 priv->firmware_name, ucode_raw->size); 1044 nic->firmware_name, ucode_raw->size);
1045 1045
1046 /* Make sure that we got at least the API version number */ 1046 /* Make sure that we got at least the API version number */
1047 if (ucode_raw->size < 4) { 1047 if (ucode_raw->size < 4) {