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>
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