Skip to content

Commit

Permalink
iwlagn: fix compile warnings when CONFIG_PM_SLEEP is not set
Browse files Browse the repository at this point in the history
  CC [M]  drivers/net/wireless/iwlwifi/iwl-pci.o
  drivers/net/wireless/iwlwifi/iwl-pci.c:506: warning: �iwl_pci_suspend� defined but not used
  drivers/net/wireless/iwlwifi/iwl-pci.c:519: warning: �iwl_pci_resume� defined but not used

These are only used if CONFIG_PM_SLEEP is enabled. CONFIG_PM depends
(CONFIG_PM_SLEEP || CONFIG_PM_RUNTIME), so it can be set without
CONFIG_PM_SLEEP selected.

Signed-off-by: Daniel Halperin <dhalperi@cs.washington.edu>
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Daniel Halperin authored and John W. Linville committed Aug 29, 2011
1 parent 83ed901 commit f090fba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/wireless/iwlwifi/iwl-pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,7 @@ static void __devexit iwl_pci_remove(struct pci_dev *pdev)
iwl_pci_down(bus);
}

#ifdef CONFIG_PM
#ifdef CONFIG_PM_SLEEP

static int iwl_pci_suspend(struct device *device)
{
Expand Down

0 comments on commit f090fba

Please sign in to comment.