diff options
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-3945.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-3945.c | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-3945.c b/drivers/net/wireless/iwlwifi/iwl-3945.c index 4a2cc78f0d73..8cf40bcd6a05 100644 --- a/drivers/net/wireless/iwlwifi/iwl-3945.c +++ b/drivers/net/wireless/iwlwifi/iwl-3945.c | |||
@@ -152,7 +152,7 @@ void iwl3945_disable_events(struct iwl_priv *priv) | |||
152 | 152 | ||
153 | base = le32_to_cpu(priv->card_alive.log_event_table_ptr); | 153 | base = le32_to_cpu(priv->card_alive.log_event_table_ptr); |
154 | if (!iwl3945_hw_valid_rtc_data_addr(base)) { | 154 | if (!iwl3945_hw_valid_rtc_data_addr(base)) { |
155 | IWL_ERROR("Invalid event log pointer 0x%08X\n", base); | 155 | IWL_ERR(priv, "Invalid event log pointer 0x%08X\n", base); |
156 | return; | 156 | return; |
157 | } | 157 | } |
158 | 158 | ||
@@ -224,7 +224,7 @@ __le32 iwl3945_get_antenna_flags(const struct iwl_priv *priv) | |||
224 | } | 224 | } |
225 | 225 | ||
226 | /* bad antenna selector value */ | 226 | /* bad antenna selector value */ |
227 | IWL_ERROR("Bad antenna selector value (0x%x)\n", priv->antenna); | 227 | IWL_ERR(priv, "Bad antenna selector value (0x%x)\n", priv->antenna); |
228 | return 0; /* "diversity" is default if error */ | 228 | return 0; /* "diversity" is default if error */ |
229 | } | 229 | } |
230 | 230 | ||
@@ -344,7 +344,7 @@ static void iwl3945_rx_reply_tx(struct iwl_priv *priv, | |||
344 | int fail; | 344 | int fail; |
345 | 345 | ||
346 | if ((index >= txq->q.n_bd) || (iwl3945_x2_queue_used(&txq->q, index) == 0)) { | 346 | if ((index >= txq->q.n_bd) || (iwl3945_x2_queue_used(&txq->q, index) == 0)) { |
347 | IWL_ERROR("Read index for DMA queue txq_id (%d) index %d " | 347 | IWL_ERR(priv, "Read index for DMA queue txq_id (%d) index %d " |
348 | "is out of range [0-%d] %d %d\n", txq_id, | 348 | "is out of range [0-%d] %d %d\n", txq_id, |
349 | index, txq->q.n_bd, txq->q.write_ptr, | 349 | index, txq->q.n_bd, txq->q.write_ptr, |
350 | txq->q.read_ptr); | 350 | txq->q.read_ptr); |
@@ -376,7 +376,7 @@ static void iwl3945_rx_reply_tx(struct iwl_priv *priv, | |||
376 | iwl3945_tx_queue_reclaim(priv, txq_id, index); | 376 | iwl3945_tx_queue_reclaim(priv, txq_id, index); |
377 | 377 | ||
378 | if (iwl_check_bits(status, TX_ABORT_REQUIRED_MSK)) | 378 | if (iwl_check_bits(status, TX_ABORT_REQUIRED_MSK)) |
379 | IWL_ERROR("TODO: Implement Tx ABORT REQUIRED!!!\n"); | 379 | IWL_ERR(priv, "TODO: Implement Tx ABORT REQUIRED!!!\n"); |
380 | } | 380 | } |
381 | 381 | ||
382 | 382 | ||
@@ -734,7 +734,7 @@ int iwl3945_hw_txq_attach_buf_to_tfd(struct iwl_priv *priv, void *ptr, | |||
734 | pad = TFD_CTL_PAD_GET(le32_to_cpu(tfd->control_flags)); | 734 | pad = TFD_CTL_PAD_GET(le32_to_cpu(tfd->control_flags)); |
735 | 735 | ||
736 | if ((count >= NUM_TFD_CHUNKS) || (count < 0)) { | 736 | if ((count >= NUM_TFD_CHUNKS) || (count < 0)) { |
737 | IWL_ERROR("Error can not send more than %d chunks\n", | 737 | IWL_ERR(priv, "Error can not send more than %d chunks\n", |
738 | NUM_TFD_CHUNKS); | 738 | NUM_TFD_CHUNKS); |
739 | return -EINVAL; | 739 | return -EINVAL; |
740 | } | 740 | } |
@@ -771,7 +771,7 @@ int iwl3945_hw_txq_free_tfd(struct iwl_priv *priv, struct iwl3945_tx_queue *txq) | |||
771 | /* sanity check */ | 771 | /* sanity check */ |
772 | counter = TFD_CTL_COUNT_GET(le32_to_cpu(bd->control_flags)); | 772 | counter = TFD_CTL_COUNT_GET(le32_to_cpu(bd->control_flags)); |
773 | if (counter > NUM_TFD_CHUNKS) { | 773 | if (counter > NUM_TFD_CHUNKS) { |
774 | IWL_ERROR("Too many chunks: %i\n", counter); | 774 | IWL_ERR(priv, "Too many chunks: %i\n", counter); |
775 | /* @todo issue fatal error, it is quite serious situation */ | 775 | /* @todo issue fatal error, it is quite serious situation */ |
776 | return 0; | 776 | return 0; |
777 | } | 777 | } |
@@ -1065,7 +1065,7 @@ static int iwl3945_txq_ctx_reset(struct iwl_priv *priv) | |||
1065 | rc = iwl3945_tx_queue_init(priv, &priv->txq39[txq_id], slots_num, | 1065 | rc = iwl3945_tx_queue_init(priv, &priv->txq39[txq_id], slots_num, |
1066 | txq_id); | 1066 | txq_id); |
1067 | if (rc) { | 1067 | if (rc) { |
1068 | IWL_ERROR("Tx %d queue init failed\n", txq_id); | 1068 | IWL_ERR(priv, "Tx %d queue init failed\n", txq_id); |
1069 | goto error; | 1069 | goto error; |
1070 | } | 1070 | } |
1071 | } | 1071 | } |
@@ -1177,7 +1177,7 @@ int iwl3945_hw_nic_init(struct iwl_priv *priv) | |||
1177 | if (!rxq->bd) { | 1177 | if (!rxq->bd) { |
1178 | rc = iwl3945_rx_queue_alloc(priv); | 1178 | rc = iwl3945_rx_queue_alloc(priv); |
1179 | if (rc) { | 1179 | if (rc) { |
1180 | IWL_ERROR("Unable to initialize Rx queue\n"); | 1180 | IWL_ERR(priv, "Unable to initialize Rx queue\n"); |
1181 | return -ENOMEM; | 1181 | return -ENOMEM; |
1182 | } | 1182 | } |
1183 | } else | 1183 | } else |
@@ -1377,7 +1377,7 @@ static int iwl3945_hw_reg_txpower_get_temperature(struct iwl_priv *priv) | |||
1377 | 1377 | ||
1378 | /* handle insane temp reading */ | 1378 | /* handle insane temp reading */ |
1379 | if (iwl3945_hw_reg_temp_out_of_range(temperature)) { | 1379 | if (iwl3945_hw_reg_temp_out_of_range(temperature)) { |
1380 | IWL_ERROR("Error bad temperature value %d\n", temperature); | 1380 | IWL_ERR(priv, "Error bad temperature value %d\n", temperature); |
1381 | 1381 | ||
1382 | /* if really really hot(?), | 1382 | /* if really really hot(?), |
1383 | * substitute the 3rd band/group's temp measured at factory */ | 1383 | * substitute the 3rd band/group's temp measured at factory */ |
@@ -1685,9 +1685,9 @@ int iwl3945_hw_reg_send_txpower(struct iwl_priv *priv) | |||
1685 | priv->band, | 1685 | priv->band, |
1686 | le16_to_cpu(priv->active39_rxon.channel)); | 1686 | le16_to_cpu(priv->active39_rxon.channel)); |
1687 | if (!ch_info) { | 1687 | if (!ch_info) { |
1688 | IWL_ERROR | 1688 | IWL_ERR(priv, |
1689 | ("Failed to get channel info for channel %d [%d]\n", | 1689 | "Failed to get channel info for channel %d [%d]\n", |
1690 | le16_to_cpu(priv->active39_rxon.channel), priv->band); | 1690 | le16_to_cpu(priv->active39_rxon.channel), priv->band); |
1691 | return -EINVAL; | 1691 | return -EINVAL; |
1692 | } | 1692 | } |
1693 | 1693 | ||
@@ -2224,7 +2224,7 @@ int iwl3945_txpower_set_from_eeprom(struct iwl_priv *priv) | |||
2224 | ch_info->group_index, | 2224 | ch_info->group_index, |
2225 | &power_idx); | 2225 | &power_idx); |
2226 | if (rc) { | 2226 | if (rc) { |
2227 | IWL_ERROR("Invalid power index\n"); | 2227 | IWL_ERR(priv, "Invalid power index\n"); |
2228 | return rc; | 2228 | return rc; |
2229 | } | 2229 | } |
2230 | pwr_info->base_power_index = (u8) power_idx; | 2230 | pwr_info->base_power_index = (u8) power_idx; |
@@ -2300,7 +2300,7 @@ int iwl3945_hw_rxq_stop(struct iwl_priv *priv) | |||
2300 | rc = iwl_poll_direct_bit(priv, FH39_RSSR_STATUS, | 2300 | rc = iwl_poll_direct_bit(priv, FH39_RSSR_STATUS, |
2301 | FH39_RSSR_CHNL0_RX_STATUS_CHNL_IDLE, 1000); | 2301 | FH39_RSSR_CHNL0_RX_STATUS_CHNL_IDLE, 1000); |
2302 | if (rc < 0) | 2302 | if (rc < 0) |
2303 | IWL_ERROR("Can't stop Rx DMA.\n"); | 2303 | IWL_ERR(priv, "Can't stop Rx DMA.\n"); |
2304 | 2304 | ||
2305 | iwl_release_nic_access(priv); | 2305 | iwl_release_nic_access(priv); |
2306 | spin_unlock_irqrestore(&priv->lock, flags); | 2306 | spin_unlock_irqrestore(&priv->lock, flags); |
@@ -2440,7 +2440,7 @@ int iwl3945_hw_set_hw_params(struct iwl_priv *priv) | |||
2440 | &priv->shared_phys); | 2440 | &priv->shared_phys); |
2441 | 2441 | ||
2442 | if (!priv->shared_virt) { | 2442 | if (!priv->shared_virt) { |
2443 | IWL_ERROR("failed to allocate pci memory\n"); | 2443 | IWL_ERR(priv, "failed to allocate pci memory\n"); |
2444 | mutex_unlock(&priv->mutex); | 2444 | mutex_unlock(&priv->mutex); |
2445 | return -ENOMEM; | 2445 | return -ENOMEM; |
2446 | } | 2446 | } |