aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-core.c
diff options
context:
space:
mode:
authorWinkler, Tomas <tomas.winkler@intel.com>2008-12-18 21:37:32 -0500
committerJohn W. Linville <linville@tuxdriver.com>2009-01-29 15:59:16 -0500
commit39aadf8c29ad959e823efca15381bea9d0770b1e (patch)
tree302344b24ccacf38a4af759ec9c809d3b83110a0 /drivers/net/wireless/iwlwifi/iwl-core.c
parent978785a3892b34448446e8c8a17f48454f1bdd6a (diff)
iwlwifi: replace IWL_WARNING with IWL_WARN
IWL_WARN 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-core.c')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-core.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-core.c b/drivers/net/wireless/iwlwifi/iwl-core.c
index 4100b155531..2bc461a610a 100644
--- a/drivers/net/wireless/iwlwifi/iwl-core.c
+++ b/drivers/net/wireless/iwlwifi/iwl-core.c
@@ -924,13 +924,13 @@ int iwl_set_tx_power(struct iwl_priv *priv, s8 tx_power, bool force)
924{ 924{
925 int ret = 0; 925 int ret = 0;
926 if (tx_power < IWL_TX_POWER_TARGET_POWER_MIN) { 926 if (tx_power < IWL_TX_POWER_TARGET_POWER_MIN) {
927 IWL_WARNING("Requested user TXPOWER %d below limit.\n", 927 IWL_WARN(priv, "Requested user TXPOWER %d below limit.\n",
928 priv->tx_power_user_lmt); 928 priv->tx_power_user_lmt);
929 return -EINVAL; 929 return -EINVAL;
930 } 930 }
931 931
932 if (tx_power > IWL_TX_POWER_TARGET_POWER_MAX) { 932 if (tx_power > IWL_TX_POWER_TARGET_POWER_MAX) {
933 IWL_WARNING("Requested user TXPOWER %d above limit.\n", 933 IWL_WARN(priv, "Requested user TXPOWER %d above limit.\n",
934 priv->tx_power_user_lmt); 934 priv->tx_power_user_lmt);
935 return -EINVAL; 935 return -EINVAL;
936 } 936 }
@@ -1193,7 +1193,7 @@ void iwl_dump_nic_error_log(struct iwl_priv *priv)
1193 1193
1194 ret = iwl_grab_nic_access(priv); 1194 ret = iwl_grab_nic_access(priv);
1195 if (ret) { 1195 if (ret) {
1196 IWL_WARNING("Can not read from adapter at this time.\n"); 1196 IWL_WARN(priv, "Can not read from adapter at this time.\n");
1197 return; 1197 return;
1198 } 1198 }
1199 1199
@@ -1297,7 +1297,7 @@ void iwl_dump_nic_event_log(struct iwl_priv *priv)
1297 1297
1298 ret = iwl_grab_nic_access(priv); 1298 ret = iwl_grab_nic_access(priv);
1299 if (ret) { 1299 if (ret) {
1300 IWL_WARNING("Can not read from adapter at this time.\n"); 1300 IWL_WARN(priv, "Can not read from adapter at this time.\n");
1301 return; 1301 return;
1302 } 1302 }
1303 1303