diff options
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-ucode.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-ucode.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-ucode.c b/drivers/net/wireless/iwlwifi/iwl-ucode.c index 539171945610..4056d1ff8437 100644 --- a/drivers/net/wireless/iwlwifi/iwl-ucode.c +++ b/drivers/net/wireless/iwlwifi/iwl-ucode.c | |||
@@ -244,7 +244,7 @@ static int iwl_alive_notify(struct iwl_priv *priv) | |||
244 | { | 244 | { |
245 | int ret; | 245 | int ret; |
246 | 246 | ||
247 | iwl_trans_fw_alive(trans(priv)); | 247 | iwl_trans_fw_alive(priv->trans); |
248 | 248 | ||
249 | priv->passive_no_rx = false; | 249 | priv->passive_no_rx = false; |
250 | priv->transport_queue_stop = 0; | 250 | priv->transport_queue_stop = 0; |
@@ -282,9 +282,9 @@ static int iwl_verify_sec_sparse(struct iwl_priv *priv, | |||
282 | /* read data comes through single port, auto-incr addr */ | 282 | /* read data comes through single port, auto-incr addr */ |
283 | /* NOTE: Use the debugless read so we don't flood kernel log | 283 | /* NOTE: Use the debugless read so we don't flood kernel log |
284 | * if IWL_DL_IO is set */ | 284 | * if IWL_DL_IO is set */ |
285 | iwl_write_direct32(trans(priv), HBUS_TARG_MEM_RADDR, | 285 | iwl_write_direct32(priv->trans, HBUS_TARG_MEM_RADDR, |
286 | i + fw_desc->offset); | 286 | i + fw_desc->offset); |
287 | val = iwl_read32(trans(priv), HBUS_TARG_MEM_RDAT); | 287 | val = iwl_read32(priv->trans, HBUS_TARG_MEM_RDAT); |
288 | if (val != le32_to_cpu(*image)) | 288 | if (val != le32_to_cpu(*image)) |
289 | return -EIO; | 289 | return -EIO; |
290 | } | 290 | } |
@@ -303,14 +303,14 @@ static void iwl_print_mismatch_sec(struct iwl_priv *priv, | |||
303 | 303 | ||
304 | IWL_DEBUG_FW(priv, "ucode inst image size is %u\n", len); | 304 | IWL_DEBUG_FW(priv, "ucode inst image size is %u\n", len); |
305 | 305 | ||
306 | iwl_write_direct32(trans(priv), HBUS_TARG_MEM_RADDR, | 306 | iwl_write_direct32(priv->trans, HBUS_TARG_MEM_RADDR, |
307 | fw_desc->offset); | 307 | fw_desc->offset); |
308 | 308 | ||
309 | for (offs = 0; | 309 | for (offs = 0; |
310 | offs < len && errors < 20; | 310 | offs < len && errors < 20; |
311 | offs += sizeof(u32), image++) { | 311 | offs += sizeof(u32), image++) { |
312 | /* read data comes through single port, auto-incr addr */ | 312 | /* read data comes through single port, auto-incr addr */ |
313 | val = iwl_read32(trans(priv), HBUS_TARG_MEM_RDAT); | 313 | val = iwl_read32(priv->trans, HBUS_TARG_MEM_RDAT); |
314 | if (val != le32_to_cpu(*image)) { | 314 | if (val != le32_to_cpu(*image)) { |
315 | IWL_ERR(priv, "uCode INST section at " | 315 | IWL_ERR(priv, "uCode INST section at " |
316 | "offset 0x%x, is 0x%x, s/b 0x%x\n", | 316 | "offset 0x%x, is 0x%x, s/b 0x%x\n", |
@@ -402,7 +402,7 @@ int iwl_load_ucode_wait_alive(struct iwl_priv *priv, | |||
402 | alive_cmd, ARRAY_SIZE(alive_cmd), | 402 | alive_cmd, ARRAY_SIZE(alive_cmd), |
403 | iwl_alive_fn, &alive_data); | 403 | iwl_alive_fn, &alive_data); |
404 | 404 | ||
405 | ret = iwl_trans_start_fw(trans(priv), fw); | 405 | ret = iwl_trans_start_fw(priv->trans, fw); |
406 | if (ret) { | 406 | if (ret) { |
407 | priv->cur_ucode = old_type; | 407 | priv->cur_ucode = old_type; |
408 | iwl_remove_notification(&priv->notif_wait, &alive_wait); | 408 | iwl_remove_notification(&priv->notif_wait, &alive_wait); |
@@ -526,7 +526,7 @@ int iwl_run_init_ucode(struct iwl_priv *priv) | |||
526 | iwl_remove_notification(&priv->notif_wait, &calib_wait); | 526 | iwl_remove_notification(&priv->notif_wait, &calib_wait); |
527 | out: | 527 | out: |
528 | /* Whatever happened, stop the device */ | 528 | /* Whatever happened, stop the device */ |
529 | iwl_trans_stop_device(trans(priv)); | 529 | iwl_trans_stop_device(priv->trans); |
530 | priv->ucode_loaded = false; | 530 | priv->ucode_loaded = false; |
531 | 531 | ||
532 | return ret; | 532 | return ret; |