Skip to content

Commit

Permalink
ath9k: Remove pm_qos request after hw unregister.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Vivek Natarajan authored and John W. Linville committed Nov 16, 2010
1 parent dfa31fe commit e8364bb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/net/wireless/ath/ath9k/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand All @@ -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);
Expand Down

0 comments on commit e8364bb

Please sign in to comment.