From: Hauke Mehrtens Date: Sun, 11 Jul 2010 20:23:11 +0000 (+0200) Subject: compat-wireless: fix build of ath5k for CONFIG_PM_SLEEP=n X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=04f00e8814daedff8d7665767080423bad083ef3;p=openwrt%2Fstaging%2Fblogic.git compat-wireless: fix build of ath5k for CONFIG_PM_SLEEP=n suspend and resume are activated in ath5k if CONFIG_PM_SLEEP is set and not if just CONFIG_PM is set. This should fix the problems reported by Philip Prindeville. Signed-off-by: Hauke Mehrtens --- diff --git a/patches/11-dev-pm-ops.patch b/patches/11-dev-pm-ops.patch index 3e97ed975805..688da8472185 100644 --- a/patches/11-dev-pm-ops.patch +++ b/patches/11-dev-pm-ops.patch @@ -49,7 +49,7 @@ calls on compat code with only slight modifications. .remove = __devexit_p(ath5k_pci_remove), +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,29)) .driver.pm = ATH5K_PM_OPS, -+#elif defined(CONFIG_PM) ++#elif defined(CONFIG_PM_SLEEP) + .suspend = ath5k_pci_suspend_compat, + .resume = ath5k_pci_resume_compat, +#endif