mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-24 07:51:55 +02:00
a07f2e8000
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18065 3c298f89-4303-0410-b956-a3cf2f4a3e73
23 lines
812 B
Diff
23 lines
812 B
Diff
--- a/drivers/net/wireless/ath/ath5k/base.c
|
|
+++ b/drivers/net/wireless/ath/ath5k/base.c
|
|
@@ -238,7 +238,7 @@ static struct pci_driver ath5k_pci_drive
|
|
.remove = __devexit_p(ath5k_pci_remove),
|
|
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,29))
|
|
.driver.pm = ATH5K_PM_OPS,
|
|
-#else
|
|
+#elif defined(CONFIG_PM)
|
|
.suspend = ath5k_pci_suspend_compat,
|
|
.resume = ath5k_pci_resume_compat,
|
|
#endif
|
|
--- a/compat/patches/11-dev-pm-ops.patch
|
|
+++ b/compat/patches/11-dev-pm-ops.patch
|
|
@@ -49,7 +49,7 @@ calls on compat code with only slight mo
|
|
.remove = __devexit_p(ath5k_pci_remove),
|
|
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,29))
|
|
.driver.pm = ATH5K_PM_OPS,
|
|
-+#else
|
|
++#elif defined(CONFIG_PM)
|
|
+ .suspend = ath5k_pci_suspend_compat,
|
|
+ .resume = ath5k_pci_resume_compat,
|
|
+#endif
|