提交 d61c81cb 编写于 作者: R Rafael J. Wysocki

e1000e / igb / PM: Eliminate CONFIG_PM_RUNTIME

After commit b2b49ccb (PM: Kconfig: Set PM_RUNTIME if PM_SLEEP is
selected) PM_RUNTIME is always set if PM is set, so #ifdef blocks
depending on CONFIG_PM_RUNTIME within #ifdef blocks depending on
CONFIG_PM may be dropped now.

Do that in the e1000e and igb network drivers.
Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: NJeff Kirsher <jeffrey.t.kirsher@intel.com>
上级 162d6f98
...@@ -6372,7 +6372,6 @@ static int e1000e_pm_resume(struct device *dev) ...@@ -6372,7 +6372,6 @@ static int e1000e_pm_resume(struct device *dev)
} }
#endif /* CONFIG_PM_SLEEP */ #endif /* CONFIG_PM_SLEEP */
#ifdef CONFIG_PM_RUNTIME
static int e1000e_pm_runtime_idle(struct device *dev) static int e1000e_pm_runtime_idle(struct device *dev)
{ {
struct pci_dev *pdev = to_pci_dev(dev); struct pci_dev *pdev = to_pci_dev(dev);
...@@ -6432,7 +6431,6 @@ static int e1000e_pm_runtime_suspend(struct device *dev) ...@@ -6432,7 +6431,6 @@ static int e1000e_pm_runtime_suspend(struct device *dev)
return 0; return 0;
} }
#endif /* CONFIG_PM_RUNTIME */
#endif /* CONFIG_PM */ #endif /* CONFIG_PM */
static void e1000_shutdown(struct pci_dev *pdev) static void e1000_shutdown(struct pci_dev *pdev)
......
...@@ -186,11 +186,9 @@ static int igb_pci_enable_sriov(struct pci_dev *dev, int num_vfs); ...@@ -186,11 +186,9 @@ static int igb_pci_enable_sriov(struct pci_dev *dev, int num_vfs);
static int igb_suspend(struct device *); static int igb_suspend(struct device *);
#endif #endif
static int igb_resume(struct device *); static int igb_resume(struct device *);
#ifdef CONFIG_PM_RUNTIME
static int igb_runtime_suspend(struct device *dev); static int igb_runtime_suspend(struct device *dev);
static int igb_runtime_resume(struct device *dev); static int igb_runtime_resume(struct device *dev);
static int igb_runtime_idle(struct device *dev); static int igb_runtime_idle(struct device *dev);
#endif
static const struct dev_pm_ops igb_pm_ops = { static const struct dev_pm_ops igb_pm_ops = {
SET_SYSTEM_SLEEP_PM_OPS(igb_suspend, igb_resume) SET_SYSTEM_SLEEP_PM_OPS(igb_suspend, igb_resume)
SET_RUNTIME_PM_OPS(igb_runtime_suspend, igb_runtime_resume, SET_RUNTIME_PM_OPS(igb_runtime_suspend, igb_runtime_resume,
...@@ -7441,7 +7439,6 @@ static int igb_resume(struct device *dev) ...@@ -7441,7 +7439,6 @@ static int igb_resume(struct device *dev)
return 0; return 0;
} }
#ifdef CONFIG_PM_RUNTIME
static int igb_runtime_idle(struct device *dev) static int igb_runtime_idle(struct device *dev)
{ {
struct pci_dev *pdev = to_pci_dev(dev); struct pci_dev *pdev = to_pci_dev(dev);
...@@ -7478,8 +7475,7 @@ static int igb_runtime_resume(struct device *dev) ...@@ -7478,8 +7475,7 @@ static int igb_runtime_resume(struct device *dev)
{ {
return igb_resume(dev); return igb_resume(dev);
} }
#endif /* CONFIG_PM_RUNTIME */ #endif /* CONFIG_PM */
#endif
static void igb_shutdown(struct pci_dev *pdev) static void igb_shutdown(struct pci_dev *pdev)
{ {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册