From: Luis R. Rodriguez Date: Tue, 4 Dec 2012 23:19:17 +0000 (-0800) Subject: compat-drivers: fix alx suspend/resume calls for old kernels X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=0a2da43c8ad75131be95a46de03faf315025b1c5;p=openwrt%2Fstaging%2Fblogic.git 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 --- 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