summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/intel/iwlwifi/mvm/tt.c
diff options
context:
space:
mode:
authorLuca Coelho <luciano.coelho@intel.com>2016-02-08 11:18:46 +0200
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>2016-03-06 21:59:48 +0200
commit4479a899f75cdbd0406d29701d459be5cadaf00b (patch)
tree5bd61c0a9e8644e8d877f460eb8b22423e4d2e3e /drivers/net/wireless/intel/iwlwifi/mvm/tt.c
parent53f09e742b0fdf14a2a2bfd2062ee96c9b3eedf0 (diff)
iwlwifi: pcie: forbid RTPM on device removal
The pci driver keeps any unbound device in active state and forbids runtime PM. When our driver gets probed, we take control of the state. When the device is released (i.e. during unbind or module removal), we should return the state to what it was before. To do so, we need to forbid RTPM in the driver remove op. Additionally, remove an unnecessary pm_runtime_disable() call, move the initial ref_count setting to a better place and add some comments explaining what is going on. Signed-off-by: Luca Coelho <luciano.coelho@intel.com> Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Diffstat (limited to 'drivers/net/wireless/intel/iwlwifi/mvm/tt.c')
0 files changed, 0 insertions, 0 deletions