diff options
author | Winkler, Tomas <tomas.winkler@intel.com> | 2008-12-18 21:37:33 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-01-29 15:59:17 -0500 |
commit | 15b1687cb4f45b87ddbe4dfc7759ff5bb69497d2 (patch) | |
tree | c4e3e70b0d9b7ba877e52cd0a5116c4411bbf8e1 /drivers/net/wireless/iwlwifi/iwl-eeprom.c | |
parent | 39aadf8c29ad959e823efca15381bea9d0770b1e (diff) |
iwlwifi: replace IWL_ERROR with IWL_ERR
IWL_ERR doesn't use hidden priv pointer.
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Zhu Yi <yi.zhu@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-eeprom.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-eeprom.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-eeprom.c b/drivers/net/wireless/iwlwifi/iwl-eeprom.c index ce2f47306cea..59abac09a788 100644 --- a/drivers/net/wireless/iwlwifi/iwl-eeprom.c +++ b/drivers/net/wireless/iwlwifi/iwl-eeprom.c | |||
@@ -145,7 +145,7 @@ int iwlcore_eeprom_verify_signature(struct iwl_priv *priv) | |||
145 | { | 145 | { |
146 | u32 gp = iwl_read32(priv, CSR_EEPROM_GP); | 146 | u32 gp = iwl_read32(priv, CSR_EEPROM_GP); |
147 | if ((gp & CSR_EEPROM_GP_VALID_MSK) == CSR_EEPROM_GP_BAD_SIGNATURE) { | 147 | if ((gp & CSR_EEPROM_GP_VALID_MSK) == CSR_EEPROM_GP_BAD_SIGNATURE) { |
148 | IWL_ERROR("EEPROM not found, EEPROM_GP=0x%08x\n", gp); | 148 | IWL_ERR(priv, "EEPROM not found, EEPROM_GP=0x%08x\n", gp); |
149 | return -ENOENT; | 149 | return -ENOENT; |
150 | } | 150 | } |
151 | return 0; | 151 | return 0; |
@@ -223,7 +223,7 @@ int iwl_eeprom_init(struct iwl_priv *priv) | |||
223 | 223 | ||
224 | ret = priv->cfg->ops->lib->eeprom_ops.verify_signature(priv); | 224 | ret = priv->cfg->ops->lib->eeprom_ops.verify_signature(priv); |
225 | if (ret < 0) { | 225 | if (ret < 0) { |
226 | IWL_ERROR("EEPROM not found, EEPROM_GP=0x%08x\n", gp); | 226 | IWL_ERR(priv, "EEPROM not found, EEPROM_GP=0x%08x\n", gp); |
227 | ret = -ENOENT; | 227 | ret = -ENOENT; |
228 | goto err; | 228 | goto err; |
229 | } | 229 | } |
@@ -231,7 +231,7 @@ int iwl_eeprom_init(struct iwl_priv *priv) | |||
231 | /* Make sure driver (instead of uCode) is allowed to read EEPROM */ | 231 | /* Make sure driver (instead of uCode) is allowed to read EEPROM */ |
232 | ret = priv->cfg->ops->lib->eeprom_ops.acquire_semaphore(priv); | 232 | ret = priv->cfg->ops->lib->eeprom_ops.acquire_semaphore(priv); |
233 | if (ret < 0) { | 233 | if (ret < 0) { |
234 | IWL_ERROR("Failed to acquire EEPROM semaphore.\n"); | 234 | IWL_ERR(priv, "Failed to acquire EEPROM semaphore.\n"); |
235 | ret = -ENOENT; | 235 | ret = -ENOENT; |
236 | goto err; | 236 | goto err; |
237 | } | 237 | } |
@@ -247,7 +247,7 @@ int iwl_eeprom_init(struct iwl_priv *priv) | |||
247 | CSR_EEPROM_REG_READ_VALID_MSK, | 247 | CSR_EEPROM_REG_READ_VALID_MSK, |
248 | IWL_EEPROM_ACCESS_TIMEOUT); | 248 | IWL_EEPROM_ACCESS_TIMEOUT); |
249 | if (ret < 0) { | 249 | if (ret < 0) { |
250 | IWL_ERROR("Time out reading EEPROM[%d]\n", addr); | 250 | IWL_ERR(priv, "Time out reading EEPROM[%d]\n", addr); |
251 | goto done; | 251 | goto done; |
252 | } | 252 | } |
253 | r = _iwl_read_direct32(priv, CSR_EEPROM_REG); | 253 | r = _iwl_read_direct32(priv, CSR_EEPROM_REG); |
@@ -285,7 +285,7 @@ int iwl_eeprom_check_version(struct iwl_priv *priv) | |||
285 | 285 | ||
286 | return 0; | 286 | return 0; |
287 | err: | 287 | err: |
288 | IWL_ERROR("Unsupported EEPROM VER=0x%x < 0x%x CALIB=0x%x < 0x%x\n", | 288 | IWL_ERR(priv, "Unsupported EEPROM VER=0x%x < 0x%x CALIB=0x%x < 0x%x\n", |
289 | eeprom_ver, priv->cfg->eeprom_ver, | 289 | eeprom_ver, priv->cfg->eeprom_ver, |
290 | calib_ver, priv->cfg->eeprom_calib_ver); | 290 | calib_ver, priv->cfg->eeprom_calib_ver); |
291 | return -EINVAL; | 291 | return -EINVAL; |
@@ -450,7 +450,7 @@ int iwl_init_channel_map(struct iwl_priv *priv) | |||
450 | priv->channel_info = kzalloc(sizeof(struct iwl_channel_info) * | 450 | priv->channel_info = kzalloc(sizeof(struct iwl_channel_info) * |
451 | priv->channel_count, GFP_KERNEL); | 451 | priv->channel_count, GFP_KERNEL); |
452 | if (!priv->channel_info) { | 452 | if (!priv->channel_info) { |
453 | IWL_ERROR("Could not allocate channel_info\n"); | 453 | IWL_ERR(priv, "Could not allocate channel_info\n"); |
454 | priv->channel_count = 0; | 454 | priv->channel_count = 0; |
455 | return -ENOMEM; | 455 | return -ENOMEM; |
456 | } | 456 | } |