From: Emmanuel Grumbach Date: Tue, 30 Oct 2012 16:31:41 +0000 (+0200) Subject: iwlwifi: don't call stop_device twice X-Git-Tag: v3.8-rc1~139^2~17^2~1^2~37 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0daf7d9605352d4f0c5575a897dd71787ea92b9c;p=platform%2Fkernel%2Flinux-stable.git iwlwifi: don't call stop_device twice When we unregister from mac80211 it will down the device anyway. Signed-off-by: Emmanuel Grumbach Signed-off-by: Johannes Berg --- diff --git a/drivers/net/wireless/iwlwifi/dvm/main.c b/drivers/net/wireless/iwlwifi/dvm/main.c index 2b50d11..4547f36 100644 --- a/drivers/net/wireless/iwlwifi/dvm/main.c +++ b/drivers/net/wireless/iwlwifi/dvm/main.c @@ -1507,10 +1507,6 @@ static void iwl_op_mode_dvm_stop(struct iwl_op_mode *op_mode) iwl_tt_exit(priv); - /*This will stop the queues, move the device to low power state */ - priv->ucode_loaded = false; - iwl_trans_stop_device(priv->trans); - kfree(priv->eeprom_blob); iwl_free_eeprom_data(priv->eeprom_data);