Fixes a pm patch for ath5k
authorFelix Bitterli <ic.felix@gmail.com>
Mon, 2 Nov 2009 16:46:04 +0000 (08:46 -0800)
committerLuis R. Rodriguez <lrodriguez@atheros.com>
Mon, 2 Nov 2009 16:46:04 +0000 (08:46 -0800)
Signed-off-by: Felix Bitterli <ic.felix@gmail.com>
compat/patches/11-dev-pm-ops.patch

index d0085533cde843ab0959de551f294d81aa88898f..a1937a9fd479569017471dc435e5353531e9a4d7 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,
-+#else
++#elif defined(CONFIG_PM)
 +      .suspend        = ath5k_pci_suspend_compat,
 +      .resume         = ath5k_pci_resume_compat,
 +#endif