diff options
author | Emmanuel Grumbach <emmanuel.grumbach@intel.com> | 2012-04-19 03:29:58 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-05-08 20:56:09 -0400 |
commit | c15797e6af9a26686a93d79e5bb6ce8280379e92 (patch) | |
tree | d2fd9354485c24fd3b227d0932aa3d193602eaee | |
parent | 4d5ba61ca3607dacd84a86c61bae7752e3dd9cae (diff) |
iwlwifi: use IWL_* instead of dev_printk when possible
Also remove a debug print when allocation error occurred.
The kernel will complain anyway.
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-agn.c | 11 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-drv.c | 8 |
2 files changed, 9 insertions, 10 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn.c b/drivers/net/wireless/iwlwifi/iwl-agn.c index 8bd9610a5d68..ee47b3fcf891 100644 --- a/drivers/net/wireless/iwlwifi/iwl-agn.c +++ b/drivers/net/wireless/iwlwifi/iwl-agn.c | |||
@@ -1419,32 +1419,31 @@ void iwl_set_hw_params(struct iwl_priv *priv) | |||
1419 | 1419 | ||
1420 | void iwl_debug_config(struct iwl_priv *priv) | 1420 | void iwl_debug_config(struct iwl_priv *priv) |
1421 | { | 1421 | { |
1422 | dev_printk(KERN_INFO, priv->trans->dev, "CONFIG_IWLWIFI_DEBUG " | 1422 | IWL_INFO(priv, "CONFIG_IWLWIFI_DEBUG " |
1423 | #ifdef CONFIG_IWLWIFI_DEBUG | 1423 | #ifdef CONFIG_IWLWIFI_DEBUG |
1424 | "enabled\n"); | 1424 | "enabled\n"); |
1425 | #else | 1425 | #else |
1426 | "disabled\n"); | 1426 | "disabled\n"); |
1427 | #endif | 1427 | #endif |
1428 | dev_printk(KERN_INFO, priv->trans->dev, "CONFIG_IWLWIFI_DEBUGFS " | 1428 | IWL_INFO(priv, "CONFIG_IWLWIFI_DEBUGFS " |
1429 | #ifdef CONFIG_IWLWIFI_DEBUGFS | 1429 | #ifdef CONFIG_IWLWIFI_DEBUGFS |
1430 | "enabled\n"); | 1430 | "enabled\n"); |
1431 | #else | 1431 | #else |
1432 | "disabled\n"); | 1432 | "disabled\n"); |
1433 | #endif | 1433 | #endif |
1434 | dev_printk(KERN_INFO, priv->trans->dev, "CONFIG_IWLWIFI_DEVICE_TRACING " | 1434 | IWL_INFO(priv, "CONFIG_IWLWIFI_DEVICE_TRACING " |
1435 | #ifdef CONFIG_IWLWIFI_DEVICE_TRACING | 1435 | #ifdef CONFIG_IWLWIFI_DEVICE_TRACING |
1436 | "enabled\n"); | 1436 | "enabled\n"); |
1437 | #else | 1437 | #else |
1438 | "disabled\n"); | 1438 | "disabled\n"); |
1439 | #endif | 1439 | #endif |
1440 | 1440 | IWL_INFO(priv, "CONFIG_IWLWIFI_DEVICE_TESTMODE " | |
1441 | dev_printk(KERN_INFO, priv->trans->dev, "CONFIG_IWLWIFI_DEVICE_TESTMODE " | ||
1442 | #ifdef CONFIG_IWLWIFI_DEVICE_TESTMODE | 1441 | #ifdef CONFIG_IWLWIFI_DEVICE_TESTMODE |
1443 | "enabled\n"); | 1442 | "enabled\n"); |
1444 | #else | 1443 | #else |
1445 | "disabled\n"); | 1444 | "disabled\n"); |
1446 | #endif | 1445 | #endif |
1447 | dev_printk(KERN_INFO, priv->trans->dev, "CONFIG_IWLWIFI_P2P " | 1446 | IWL_INFO(priv, "CONFIG_IWLWIFI_P2P " |
1448 | #ifdef CONFIG_IWLWIFI_P2P | 1447 | #ifdef CONFIG_IWLWIFI_P2P |
1449 | "enabled\n"); | 1448 | "enabled\n"); |
1450 | #else | 1449 | #else |
diff --git a/drivers/net/wireless/iwlwifi/iwl-drv.c b/drivers/net/wireless/iwlwifi/iwl-drv.c index 05302d6f989f..430cca56a7e7 100644 --- a/drivers/net/wireless/iwlwifi/iwl-drv.c +++ b/drivers/net/wireless/iwlwifi/iwl-drv.c | |||
@@ -66,6 +66,7 @@ | |||
66 | #include <linux/module.h> | 66 | #include <linux/module.h> |
67 | 67 | ||
68 | #include "iwl-drv.h" | 68 | #include "iwl-drv.h" |
69 | #include "iwl-debug.h" | ||
69 | #include "iwl-trans.h" | 70 | #include "iwl-trans.h" |
70 | #include "iwl-op-mode.h" | 71 | #include "iwl-op-mode.h" |
71 | #include "iwl-agn-hw.h" | 72 | #include "iwl-agn-hw.h" |
@@ -892,10 +893,9 @@ struct iwl_drv *iwl_drv_start(struct iwl_trans *trans, | |||
892 | int ret; | 893 | int ret; |
893 | 894 | ||
894 | drv = kzalloc(sizeof(*drv), GFP_KERNEL); | 895 | drv = kzalloc(sizeof(*drv), GFP_KERNEL); |
895 | if (!drv) { | 896 | if (!drv) |
896 | dev_printk(KERN_ERR, trans->dev, "Couldn't allocate iwl_drv"); | ||
897 | return NULL; | 897 | return NULL; |
898 | } | 898 | |
899 | drv->trans = trans; | 899 | drv->trans = trans; |
900 | drv->dev = trans->dev; | 900 | drv->dev = trans->dev; |
901 | drv->cfg = cfg; | 901 | drv->cfg = cfg; |
@@ -905,7 +905,7 @@ struct iwl_drv *iwl_drv_start(struct iwl_trans *trans, | |||
905 | ret = iwl_request_firmware(drv, true); | 905 | ret = iwl_request_firmware(drv, true); |
906 | 906 | ||
907 | if (ret) { | 907 | if (ret) { |
908 | dev_printk(KERN_ERR, trans->dev, "Couldn't request the fw"); | 908 | IWL_ERR(trans, "Couldn't request the fw\n"); |
909 | kfree(drv); | 909 | kfree(drv); |
910 | drv = NULL; | 910 | drv = NULL; |
911 | } | 911 | } |