|
@@ -380,6 +380,7 @@ static int check_root_hub_suspended(struct device *dev)
|
|
return 0;
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+#if defined(CONFIG_PM_SLEEP) || defined(CONFIG_PM_RUNTIME)
|
|
static int suspend_common(struct device *dev, bool do_wakeup)
|
|
static int suspend_common(struct device *dev, bool do_wakeup)
|
|
{
|
|
{
|
|
struct pci_dev *pci_dev = to_pci_dev(dev);
|
|
struct pci_dev *pci_dev = to_pci_dev(dev);
|
|
@@ -471,6 +472,7 @@ static int resume_common(struct device *dev, int event)
|
|
}
|
|
}
|
|
return retval;
|
|
return retval;
|
|
}
|
|
}
|
|
|
|
+#endif /* SLEEP || RUNTIME */
|
|
|
|
|
|
#ifdef CONFIG_PM_SLEEP
|
|
#ifdef CONFIG_PM_SLEEP
|
|
|
|
|