1 --- a/drivers/net/wireless/ath/ath5k/base.c
2 +++ b/drivers/net/wireless/ath/ath5k/base.c
3 @@ -238,7 +238,7 @@ static struct pci_driver ath5k_pci_drive
4 .remove = __devexit_p(ath5k_pci_remove),
5 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,29))
6 .driver.pm = ATH5K_PM_OPS,
8 +#elif defined(CONFIG_PM)
9 .suspend = ath5k_pci_suspend_compat,
10 .resume = ath5k_pci_resume_compat,
12 --- a/compat/patches/11-dev-pm-ops.patch
13 +++ b/compat/patches/11-dev-pm-ops.patch
14 @@ -49,7 +49,7 @@ calls on compat code with only slight mo
15 .remove = __devexit_p(ath5k_pci_remove),
16 +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,29))
17 .driver.pm = ATH5K_PM_OPS,
19 ++#elif defined(CONFIG_PM)
20 + .suspend = ath5k_pci_suspend_compat,
21 + .resume = ath5k_pci_resume_compat,