Commit 8509e820 authored by Bing Zhao's avatar Bing Zhao Committed by John W. Linville

mwifiex: fix [-Wunused-function] warnings on pcie suspend/resume

drivers/net/wireless/mwifiex/pcie.c:204:12: warning:
  'mwifiex_pcie_resume' defined but not used [-Wunused-function]
drivers/net/wireless/mwifiex/pcie.c:166:12: warning:
  'mwifiex_pcie_suspend' defined but not used [-Wunused-function]

The suspend/resume handlers ought to be under CONFIG_PM directive.
Reported-by: default avatarkbuild test robot <fengguang.wu@intel.com>
Signed-off-by: default avatarBing Zhao <bzhao@marvell.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent fcca8d5a
...@@ -76,6 +76,7 @@ static bool mwifiex_pcie_ok_to_access_hw(struct mwifiex_adapter *adapter) ...@@ -76,6 +76,7 @@ static bool mwifiex_pcie_ok_to_access_hw(struct mwifiex_adapter *adapter)
return false; return false;
} }
#ifdef CONFIG_PM
/* /*
* Kernel needs to suspend all functions separately. Therefore all * Kernel needs to suspend all functions separately. Therefore all
* registered functions must have drivers with suspend and resume * registered functions must have drivers with suspend and resume
...@@ -149,6 +150,7 @@ static int mwifiex_pcie_resume(struct pci_dev *pdev) ...@@ -149,6 +150,7 @@ static int mwifiex_pcie_resume(struct pci_dev *pdev)
return 0; return 0;
} }
#endif
/* /*
* This function probes an mwifiex device and registers it. It allocates * This function probes an mwifiex device and registers it. It allocates
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment