Commit 7db5b989 authored by Johannes Berg's avatar Johannes Berg Committed by John W. Linville

iwlwifi: move uCode deallocation to drv

This shouldn't be in the op_mode, as it
will later be switchable at runtime.
Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
Signed-off-by: default avatarWey-Yi Guy <wey-yi.w.guy@intel.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent ab0bd5b3
...@@ -1385,8 +1385,6 @@ static void iwl_op_mode_dvm_stop(struct iwl_op_mode *op_mode) ...@@ -1385,8 +1385,6 @@ static void iwl_op_mode_dvm_stop(struct iwl_op_mode *op_mode)
/*This will stop the queues, move the device to low power state */ /*This will stop the queues, move the device to low power state */
iwl_trans_stop_device(trans(priv)); iwl_trans_stop_device(trans(priv));
iwl_dealloc_ucode(nic(priv));
iwl_eeprom_free(priv->shrd); iwl_eeprom_free(priv->shrd);
/*netif_stop_queue(dev); */ /*netif_stop_queue(dev); */
......
...@@ -99,5 +99,7 @@ void iwl_drv_stop(struct iwl_shared *shrd) ...@@ -99,5 +99,7 @@ void iwl_drv_stop(struct iwl_shared *shrd)
if (shrd->nic->op_mode) if (shrd->nic->op_mode)
iwl_op_mode_stop(shrd->nic->op_mode); iwl_op_mode_stop(shrd->nic->op_mode);
iwl_dealloc_ucode(shrd->nic);
kfree(shrd->nic); kfree(shrd->nic);
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment