compat-wireless: fix build of ath5k for CONFIG_PM_SLEEP=n
authorHauke Mehrtens <hauke@hauke-m.de>
Sun, 11 Jul 2010 20:23:11 +0000 (22:23 +0200)
committerLuis R. Rodriguez <lrodriguez@atheros.com>
Mon, 12 Jul 2010 15:22:22 +0000 (08:22 -0700)
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 <hauke@hauke-m.de>
patches/11-dev-pm-ops.patch

index 3e97ed9758059e9d3cc475e38ecc0cb6c08f5447..688da84721855b764920937c277b09cf32dadf6e 100644 (file)
@@ -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