|
@@ -173,7 +173,9 @@ static int igb_check_vf_assignment(struct igb_adapter *adapter);
|
|
#endif
|
|
#endif
|
|
|
|
|
|
#ifdef CONFIG_PM
|
|
#ifdef CONFIG_PM
|
|
|
|
+#ifdef CONFIG_PM_SLEEP
|
|
static int igb_suspend(struct device *);
|
|
static int igb_suspend(struct device *);
|
|
|
|
+#endif
|
|
static int igb_resume(struct device *);
|
|
static int igb_resume(struct device *);
|
|
#ifdef CONFIG_PM_RUNTIME
|
|
#ifdef CONFIG_PM_RUNTIME
|
|
static int igb_runtime_suspend(struct device *dev);
|
|
static int igb_runtime_suspend(struct device *dev);
|
|
@@ -6709,6 +6711,7 @@ static int __igb_shutdown(struct pci_dev *pdev, bool *enable_wake,
|
|
}
|
|
}
|
|
|
|
|
|
#ifdef CONFIG_PM
|
|
#ifdef CONFIG_PM
|
|
|
|
+#ifdef CONFIG_PM_SLEEP
|
|
static int igb_suspend(struct device *dev)
|
|
static int igb_suspend(struct device *dev)
|
|
{
|
|
{
|
|
int retval;
|
|
int retval;
|
|
@@ -6728,6 +6731,7 @@ static int igb_suspend(struct device *dev)
|
|
|
|
|
|
return 0;
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
+#endif /* CONFIG_PM_SLEEP */
|
|
|
|
|
|
static int igb_resume(struct device *dev)
|
|
static int igb_resume(struct device *dev)
|
|
{
|
|
{
|