--- a/drivers/net/ethernet/atheros/atlx/atl1.c +++ b/drivers/net/ethernet/atheros/atlx/atl1.c @@ -2878,6 +2878,9 @@ static int atl1_resume(struct device *de } #endif +compat_pci_suspend(atl1_suspend) +compat_pci_resume(atl1_resume) + static SIMPLE_DEV_PM_OPS(atl1_pm_ops, atl1_suspend, atl1_resume); static void atl1_shutdown(struct pci_dev *pdev) @@ -3142,7 +3145,12 @@ static struct pci_driver atl1_driver = { .probe = atl1_probe, .remove = atl1_remove, .shutdown = atl1_shutdown, +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,29)) .driver.pm = &atl1_pm_ops, +#elif defined(CONFIG_PM_SLEEP) + .suspend = atl1_suspend_compat, + .resume = atl1_resume_compat, +#endif }; /**