From dfd51549c13f74ceb989c98f0b0882e5ccd0f051 Mon Sep 17 00:00:00 2001 From: Hauke Mehrtens Date: Mon, 9 Nov 2009 14:55:55 -0800 Subject: [PATCH] Fix two warnings MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- compat/patches/11-dev-pm-ops.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compat/patches/11-dev-pm-ops.patch b/compat/patches/11-dev-pm-ops.patch index a1937a9fd479..fc4de8f64777 100644 --- a/compat/patches/11-dev-pm-ops.patch +++ b/compat/patches/11-dev-pm-ops.patch @@ -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) -- 2.30.2