Fix two warnings
authorHauke Mehrtens <hauke@hauke-m.de>
Mon, 9 Nov 2009 22:55:55 +0000 (14:55 -0800)
committerLuis R. Rodriguez <lrodriguez@atheros.com>
Mon, 9 Nov 2009 22:55:55 +0000 (14:55 -0800)
This fixes these two warnings:
drivers/net/wireless/ath/ath5k/base.c:202: warning: ‘ath5k_pci_suspend_compat’ defined but not used
drivers/net/wireless/ath/ath5k/base.c:216: warning: ‘ath5k_pci_resume_compat’ defined but not used

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
compat/patches/11-dev-pm-ops.patch

index a1937a9fd479569017471dc435e5353531e9a4d7..fc4de8f647778bc20c1b94ebbcafaffa96fc2f49 100644 (file)
@@ -14,7 +14,6 @@ calls on compat code with only slight modifications.
  static int            ath5k_pci_suspend(struct device *dev);
  static int            ath5k_pci_resume(struct device *dev);
 +#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,29))
-+#endif
 +static int ath5k_pci_suspend_compat(struct pci_dev *pdev, pm_message_t state)
 +{
 +      int r;
@@ -40,6 +39,7 @@ calls on compat code with only slight modifications.
 +
 +      return ath5k_pci_resume(&pdev->dev);
 +}
++#endif
  
  SIMPLE_DEV_PM_OPS(ath5k_pm_ops, ath5k_pci_suspend, ath5k_pci_resume);
  #define ATH5K_PM_OPS  (&ath5k_pm_ops)