|
@@ -7076,12 +7076,14 @@ static DEFINE_PCI_DEVICE_TABLE(e1000_pci_tbl) = {
|
|
|
MODULE_DEVICE_TABLE(pci, e1000_pci_tbl);
|
|
|
|
|
|
static const struct dev_pm_ops e1000_pm_ops = {
|
|
|
+#ifdef CONFIG_PM_SLEEP
|
|
|
.suspend = e1000e_pm_suspend,
|
|
|
.resume = e1000e_pm_resume,
|
|
|
.freeze = e1000e_pm_freeze,
|
|
|
.thaw = e1000e_pm_thaw,
|
|
|
.poweroff = e1000e_pm_suspend,
|
|
|
.restore = e1000e_pm_resume,
|
|
|
+#endif
|
|
|
SET_RUNTIME_PM_OPS(e1000e_pm_runtime_suspend, e1000e_pm_runtime_resume,
|
|
|
e1000e_pm_runtime_idle)
|
|
|
};
|