]> git.openfabrics.org - ~emulex/infiniband.git/commitdiff
mwifiex: fix [-Wunused-function] warnings on pcie suspend/resume
authorBing Zhao <bzhao@marvell.com>
Tue, 5 Mar 2013 00:27:54 +0000 (16:27 -0800)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 6 Mar 2013 21:29:07 +0000 (16:29 -0500)
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: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: Bing Zhao <bzhao@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/mwifiex/pcie.c

index f7e8c73f1bc6bc2df2535e59742f8cca6ee33655..cf7bdf424d055e486eeb43da7dd60c46e8654394 100644 (file)
@@ -76,6 +76,7 @@ static bool mwifiex_pcie_ok_to_access_hw(struct mwifiex_adapter *adapter)
        return false;
 }
 
+#ifdef CONFIG_PM
 /*
  * Kernel needs to suspend all functions separately. Therefore all
  * registered functions must have drivers with suspend and resume
@@ -149,6 +150,7 @@ static int mwifiex_pcie_resume(struct pci_dev *pdev)
 
        return 0;
 }
+#endif
 
 /*
  * This function probes an mwifiex device and registers it. It allocates