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>
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;
+
+ 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)