From 0a2da43c8ad75131be95a46de03faf315025b1c5 Mon Sep 17 00:00:00 2001 From: "Luis R. Rodriguez" Date: Tue, 4 Dec 2012 15:19:17 -0800 Subject: [PATCH] compat-drivers: fix alx suspend/resume calls for old kernels The declarations compat_pci_suspend() and compat_pci_resume() must be placed before SIMPLE_DEV_PM_OPS(). Signed-off-by: Luis R. Rodriguez --- patches/unified-drivers/network/0001-backport-alx.patch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/patches/unified-drivers/network/0001-backport-alx.patch b/patches/unified-drivers/network/0001-backport-alx.patch index e77c1bcc3eb5..e7a0bd4aa477 100644 --- a/patches/unified-drivers/network/0001-backport-alx.patch +++ b/patches/unified-drivers/network/0001-backport-alx.patch @@ -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 -- 2.30.2