]> git.baikalelectronics.ru Git - kernel.git/commit
iwlwifi: mvm: protect D0i3 code behind CONFIG_PM
authorLuca Coelho <luciano.coelho@intel.com>
Tue, 21 Aug 2018 04:24:18 +0000 (07:24 +0300)
committerLuca Coelho <luciano.coelho@intel.com>
Fri, 31 Aug 2018 08:38:18 +0000 (11:38 +0300)
commitfe0e99f3ff94ca94a00c9672fd695679116b4cbd
treec74977a9f97334cd10cf68f1a8cd7d1808ab2364
parentc8eb975b358e2ccd392dfe3634e202c1e8f34203
iwlwifi: mvm: protect D0i3 code behind CONFIG_PM

Runtime PM can only be used if CONFIG_PM is set.  Move all the d0i3
code (which is essentially runtime PM) behind the CONFIG_PM flag.

This prevents undefined usage of some functions when CONFIG_PM is not
defined.

Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c
drivers/net/wireless/intel/iwlwifi/mvm/mvm.h
drivers/net/wireless/intel/iwlwifi/mvm/ops.c