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)
commita75b9b333aeb045fdb7f610b85f8b5305a2d706d
treec74977a9f97334cd10cf68f1a8cd7d1808ab2364
parent11a0513cac8afb0c78280a10db72bcd671a8841f
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