diff options
author | Tomas Winkler <tomas.winkler@intel.com> | 2009-01-27 17:27:56 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-02-09 15:03:34 -0500 |
commit | e1623446bb1de1834ff1c57b3e8ed341d5d4a927 (patch) | |
tree | ece3595deda6d6bad747961be257d5f2cbb507b1 /drivers/net/wireless/iwlwifi/iwl-rfkill.c | |
parent | 450154e4f471248e188d18e45c2409b37a133765 (diff) |
iwlwifi: don't use implicit priv in IWL_DEBUG
Call IWL_DEBUG macro with explicit priv argument.
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Acked-by: Samuel Ortiz <samuel.ortiz@intel.com>
Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-rfkill.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-rfkill.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-rfkill.c b/drivers/net/wireless/iwlwifi/iwl-rfkill.c index f67d7be10748..2ad9faf1508a 100644 --- a/drivers/net/wireless/iwlwifi/iwl-rfkill.c +++ b/drivers/net/wireless/iwlwifi/iwl-rfkill.c | |||
@@ -47,7 +47,7 @@ static int iwl_rfkill_soft_rf_kill(void *data, enum rfkill_state state) | |||
47 | if (test_bit(STATUS_EXIT_PENDING, &priv->status)) | 47 | if (test_bit(STATUS_EXIT_PENDING, &priv->status)) |
48 | return 0; | 48 | return 0; |
49 | 49 | ||
50 | IWL_DEBUG_RF_KILL("we received soft RFKILL set to state %d\n", state); | 50 | IWL_DEBUG_RF_KILL(priv, "we received soft RFKILL set to state %d\n", state); |
51 | mutex_lock(&priv->mutex); | 51 | mutex_lock(&priv->mutex); |
52 | 52 | ||
53 | switch (state) { | 53 | switch (state) { |
@@ -79,7 +79,7 @@ int iwl_rfkill_init(struct iwl_priv *priv) | |||
79 | 79 | ||
80 | BUG_ON(device == NULL); | 80 | BUG_ON(device == NULL); |
81 | 81 | ||
82 | IWL_DEBUG_RF_KILL("Initializing RFKILL.\n"); | 82 | IWL_DEBUG_RF_KILL(priv, "Initializing RFKILL.\n"); |
83 | priv->rfkill = rfkill_allocate(device, RFKILL_TYPE_WLAN); | 83 | priv->rfkill = rfkill_allocate(device, RFKILL_TYPE_WLAN); |
84 | if (!priv->rfkill) { | 84 | if (!priv->rfkill) { |
85 | IWL_ERR(priv, "Unable to allocate RFKILL device.\n"); | 85 | IWL_ERR(priv, "Unable to allocate RFKILL device.\n"); |
@@ -102,7 +102,7 @@ int iwl_rfkill_init(struct iwl_priv *priv) | |||
102 | goto free_rfkill; | 102 | goto free_rfkill; |
103 | } | 103 | } |
104 | 104 | ||
105 | IWL_DEBUG_RF_KILL("RFKILL initialization complete.\n"); | 105 | IWL_DEBUG_RF_KILL(priv, "RFKILL initialization complete.\n"); |
106 | return ret; | 106 | return ret; |
107 | 107 | ||
108 | free_rfkill: | 108 | free_rfkill: |
@@ -111,7 +111,7 @@ free_rfkill: | |||
111 | priv->rfkill = NULL; | 111 | priv->rfkill = NULL; |
112 | 112 | ||
113 | error: | 113 | error: |
114 | IWL_DEBUG_RF_KILL("RFKILL initialization complete.\n"); | 114 | IWL_DEBUG_RF_KILL(priv, "RFKILL initialization complete.\n"); |
115 | return ret; | 115 | return ret; |
116 | } | 116 | } |
117 | EXPORT_SYMBOL(iwl_rfkill_init); | 117 | EXPORT_SYMBOL(iwl_rfkill_init); |