ath9k: Remove pm_qos request after hw unregister.
authorVivek Natarajan <vnatarajan@atheros.com>
Wed, 10 Nov 2010 09:41:07 +0000 (15:11 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 16 Nov 2010 20:59:38 +0000 (15:59 -0500)
Update pm_qos before removing it in deinit_device to prevent this
warning:

pm_qos_update_request() called for unknown object.

Signed-off-by: Vivek Natarajan <vnatarajan@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/init.c

index 6a0d99eff404b77417856c7f1b7c035eb079359e..92bc5c5f48768ac42ca4b1bd02690d9d38ebed80 100644 (file)
@@ -817,8 +817,6 @@ void ath9k_deinit_device(struct ath_softc *sc)
 
        ath9k_ps_wakeup(sc);
 
-       pm_qos_remove_request(&ath9k_pm_qos_req);
-
        wiphy_rfkill_stop_polling(sc->hw->wiphy);
        ath_deinit_leds(sc);
 
@@ -832,6 +830,7 @@ void ath9k_deinit_device(struct ath_softc *sc)
        }
 
        ieee80211_unregister_hw(hw);
+       pm_qos_remove_request(&ath9k_pm_qos_req);
        ath_rx_cleanup(sc);
        ath_tx_cleanup(sc);
        ath9k_deinit_softc(sc);