|
@@ -186,11 +186,9 @@ static int igb_pci_enable_sriov(struct pci_dev *dev, int num_vfs);
|
|
|
static int igb_suspend(struct device *);
|
|
|
#endif
|
|
|
static int igb_resume(struct device *);
|
|
|
-#ifdef CONFIG_PM_RUNTIME
|
|
|
static int igb_runtime_suspend(struct device *dev);
|
|
|
static int igb_runtime_resume(struct device *dev);
|
|
|
static int igb_runtime_idle(struct device *dev);
|
|
|
-#endif
|
|
|
static const struct dev_pm_ops igb_pm_ops = {
|
|
|
SET_SYSTEM_SLEEP_PM_OPS(igb_suspend, igb_resume)
|
|
|
SET_RUNTIME_PM_OPS(igb_runtime_suspend, igb_runtime_resume,
|
|
@@ -7441,7 +7439,6 @@ static int igb_resume(struct device *dev)
|
|
|
return 0;
|
|
|
}
|
|
|
|
|
|
-#ifdef CONFIG_PM_RUNTIME
|
|
|
static int igb_runtime_idle(struct device *dev)
|
|
|
{
|
|
|
struct pci_dev *pdev = to_pci_dev(dev);
|
|
@@ -7478,8 +7475,7 @@ static int igb_runtime_resume(struct device *dev)
|
|
|
{
|
|
|
return igb_resume(dev);
|
|
|
}
|
|
|
-#endif /* CONFIG_PM_RUNTIME */
|
|
|
-#endif
|
|
|
+#endif /* CONFIG_PM */
|
|
|
|
|
|
static void igb_shutdown(struct pci_dev *pdev)
|
|
|
{
|