diff options
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-sv-open.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-sv-open.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-sv-open.c b/drivers/net/wireless/iwlwifi/iwl-sv-open.c index 77ed1c295da4..b11f60de4f1e 100644 --- a/drivers/net/wireless/iwlwifi/iwl-sv-open.c +++ b/drivers/net/wireless/iwlwifi/iwl-sv-open.c | |||
@@ -181,12 +181,10 @@ void iwl_testmode_init(struct iwl_priv *priv) | |||
181 | 181 | ||
182 | static void iwl_trace_cleanup(struct iwl_priv *priv) | 182 | static void iwl_trace_cleanup(struct iwl_priv *priv) |
183 | { | 183 | { |
184 | struct device *dev = priv->bus.dev; | ||
185 | |||
186 | if (priv->testmode_trace.trace_enabled) { | 184 | if (priv->testmode_trace.trace_enabled) { |
187 | if (priv->testmode_trace.cpu_addr && | 185 | if (priv->testmode_trace.cpu_addr && |
188 | priv->testmode_trace.dma_addr) | 186 | priv->testmode_trace.dma_addr) |
189 | dma_free_coherent(dev, | 187 | dma_free_coherent(priv->bus->dev, |
190 | priv->testmode_trace.total_size, | 188 | priv->testmode_trace.total_size, |
191 | priv->testmode_trace.cpu_addr, | 189 | priv->testmode_trace.cpu_addr, |
192 | priv->testmode_trace.dma_addr); | 190 | priv->testmode_trace.dma_addr); |
@@ -241,7 +239,7 @@ static int iwl_testmode_ucode(struct ieee80211_hw *hw, struct nlattr **tb) | |||
241 | IWL_INFO(priv, "testmode ucode command ID 0x%x, flags 0x%x," | 239 | IWL_INFO(priv, "testmode ucode command ID 0x%x, flags 0x%x," |
242 | " len %d\n", cmd.id, cmd.flags, cmd.len[0]); | 240 | " len %d\n", cmd.id, cmd.flags, cmd.len[0]); |
243 | /* ok, let's submit the command to ucode */ | 241 | /* ok, let's submit the command to ucode */ |
244 | return trans_send_cmd(priv, &cmd); | 242 | return trans_send_cmd(&priv->trans, &cmd); |
245 | } | 243 | } |
246 | 244 | ||
247 | 245 | ||
@@ -407,7 +405,7 @@ static int iwl_testmode_driver(struct ieee80211_hw *hw, struct nlattr **tb) | |||
407 | 405 | ||
408 | case IWL_TM_CMD_APP2DEV_CFG_INIT_CALIB: | 406 | case IWL_TM_CMD_APP2DEV_CFG_INIT_CALIB: |
409 | iwl_testmode_cfg_init_calib(priv); | 407 | iwl_testmode_cfg_init_calib(priv); |
410 | iwlagn_stop_device(priv); | 408 | trans_stop_device(&priv->trans); |
411 | break; | 409 | break; |
412 | 410 | ||
413 | case IWL_TM_CMD_APP2DEV_LOAD_RUNTIME_FW: | 411 | case IWL_TM_CMD_APP2DEV_LOAD_RUNTIME_FW: |
@@ -486,7 +484,7 @@ static int iwl_testmode_trace(struct ieee80211_hw *hw, struct nlattr **tb) | |||
486 | struct iwl_priv *priv = hw->priv; | 484 | struct iwl_priv *priv = hw->priv; |
487 | struct sk_buff *skb; | 485 | struct sk_buff *skb; |
488 | int status = 0; | 486 | int status = 0; |
489 | struct device *dev = priv->bus.dev; | 487 | struct device *dev = priv->bus->dev; |
490 | 488 | ||
491 | switch (nla_get_u32(tb[IWL_TM_ATTR_COMMAND])) { | 489 | switch (nla_get_u32(tb[IWL_TM_ATTR_COMMAND])) { |
492 | case IWL_TM_CMD_APP2DEV_BEGIN_TRACE: | 490 | case IWL_TM_CMD_APP2DEV_BEGIN_TRACE: |