aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-debugfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-debugfs.c')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-debugfs.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-debugfs.c b/drivers/net/wireless/iwlwifi/iwl-debugfs.c
index f27dbb922739..40441b8db89b 100644
--- a/drivers/net/wireless/iwlwifi/iwl-debugfs.c
+++ b/drivers/net/wireless/iwlwifi/iwl-debugfs.c
@@ -306,14 +306,14 @@ static ssize_t iwl_dbgfs_eeprom_read(struct file *file,
306 buf_size = 4 * eeprom_len + 256; 306 buf_size = 4 * eeprom_len + 256;
307 307
308 if (eeprom_len % 16) { 308 if (eeprom_len % 16) {
309 IWL_ERROR("EEPROM size is not multiple of 16.\n"); 309 IWL_ERR(priv, "EEPROM size is not multiple of 16.\n");
310 return -ENODATA; 310 return -ENODATA;
311 } 311 }
312 312
313 /* 4 characters for byte 0xYY */ 313 /* 4 characters for byte 0xYY */
314 buf = kzalloc(buf_size, GFP_KERNEL); 314 buf = kzalloc(buf_size, GFP_KERNEL);
315 if (!buf) { 315 if (!buf) {
316 IWL_ERROR("Can not allocate Buffer\n"); 316 IWL_ERR(priv, "Can not allocate Buffer\n");
317 return -ENOMEM; 317 return -ENOMEM;
318 } 318 }
319 319
@@ -370,7 +370,7 @@ static ssize_t iwl_dbgfs_channels_read(struct file *file, char __user *user_buf,
370 370
371 buf = kzalloc(bufsz, GFP_KERNEL); 371 buf = kzalloc(bufsz, GFP_KERNEL);
372 if (!buf) { 372 if (!buf) {
373 IWL_ERROR("Can not allocate Buffer\n"); 373 IWL_ERR(priv, "Can not allocate Buffer\n");
374 return -ENOMEM; 374 return -ENOMEM;
375 } 375 }
376 376
@@ -474,7 +474,7 @@ int iwl_dbgfs_register(struct iwl_priv *priv, const char *name)
474 return 0; 474 return 0;
475 475
476err: 476err:
477 IWL_ERROR("Can't open the debugfs directory\n"); 477 IWL_ERR(priv, "Can't open the debugfs directory\n");
478 iwl_dbgfs_unregister(priv); 478 iwl_dbgfs_unregister(priv);
479 return ret; 479 return ret;
480} 480}