compat-drivers: fix alx suspend/resume calls for old kernels
authorLuis R. Rodriguez <mcgrof@do-not-panic.com>
Tue, 4 Dec 2012 23:19:17 +0000 (15:19 -0800)
committerLuis R. Rodriguez <mcgrof@do-not-panic.com>
Tue, 4 Dec 2012 23:19:17 +0000 (15:19 -0800)
The declarations compat_pci_suspend() and compat_pci_resume()
must be placed before SIMPLE_DEV_PM_OPS().

Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
patches/unified-drivers/network/0001-backport-alx.patch

index e77c1bcc3eb57fcfc0c034e3bfd70c285958ad06..e7a0bd4aa477f530de81e0d4a11125daed34d023 100644 (file)
@@ -103,10 +103,10 @@ This should go into patches/01-netdev.patch
        if (alx_get_perm_macaddr(adpt, adpt->perm_addr)) {
 @@ -2785,6 +2814,8 @@ static struct pci_error_handlers alx_err
  #ifdef CONFIG_PM_SLEEP
++compat_pci_suspend(alx_suspend);
++compat_pci_resume(alx_resume);
  static SIMPLE_DEV_PM_OPS(alx_pm_ops, alx_suspend, alx_resume);
  #define ALX_PM_OPS      (&alx_pm_ops)
-+compat_pci_suspend(alx_suspend)
-+compat_pci_resume(alx_resume)
  #else
  #define ALX_PM_OPS      NULL
  #endif