aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/intel/igb
diff options
context:
space:
mode:
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>2014-12-04 21:06:53 -0500
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2014-12-04 21:06:53 -0500
commitd61c81cb68bcdd6bc3cee4fe97c71cab9afd78b6 (patch)
treee49d99602ce7c813c6a93ddbd1eabd9f8adfdfbc /drivers/net/ethernet/intel/igb
parent162d6f98005fce408efc5af73956c434ae08ef73 (diff)
e1000e / igb / PM: Eliminate CONFIG_PM_RUNTIME
After commit b2b49ccbdd54 (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: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Acked-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'drivers/net/ethernet/intel/igb')
-rw-r--r--drivers/net/ethernet/intel/igb/igb_main.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/net/ethernet/intel/igb/igb_main.c b/drivers/net/ethernet/intel/igb/igb_main.c
index a2d72a87cbde..1d684935b4fe 100644
--- a/drivers/net/ethernet/intel/igb/igb_main.c
+++ b/drivers/net/ethernet/intel/igb/igb_main.c
@@ -186,11 +186,9 @@ static int igb_pci_enable_sriov(struct pci_dev *dev, int num_vfs);
186static int igb_suspend(struct device *); 186static int igb_suspend(struct device *);
187#endif 187#endif
188static int igb_resume(struct device *); 188static int igb_resume(struct device *);
189#ifdef CONFIG_PM_RUNTIME
190static int igb_runtime_suspend(struct device *dev); 189static int igb_runtime_suspend(struct device *dev);
191static int igb_runtime_resume(struct device *dev); 190static int igb_runtime_resume(struct device *dev);
192static int igb_runtime_idle(struct device *dev); 191static int igb_runtime_idle(struct device *dev);
193#endif
194static const struct dev_pm_ops igb_pm_ops = { 192static const struct dev_pm_ops igb_pm_ops = {
195 SET_SYSTEM_SLEEP_PM_OPS(igb_suspend, igb_resume) 193 SET_SYSTEM_SLEEP_PM_OPS(igb_suspend, igb_resume)
196 SET_RUNTIME_PM_OPS(igb_runtime_suspend, igb_runtime_resume, 194 SET_RUNTIME_PM_OPS(igb_runtime_suspend, igb_runtime_resume,
@@ -7441,7 +7439,6 @@ static int igb_resume(struct device *dev)
7441 return 0; 7439 return 0;
7442} 7440}
7443 7441
7444#ifdef CONFIG_PM_RUNTIME
7445static int igb_runtime_idle(struct device *dev) 7442static int igb_runtime_idle(struct device *dev)
7446{ 7443{
7447 struct pci_dev *pdev = to_pci_dev(dev); 7444 struct pci_dev *pdev = to_pci_dev(dev);
@@ -7478,8 +7475,7 @@ static int igb_runtime_resume(struct device *dev)
7478{ 7475{
7479 return igb_resume(dev); 7476 return igb_resume(dev);
7480} 7477}
7481#endif /* CONFIG_PM_RUNTIME */ 7478#endif /* CONFIG_PM */
7482#endif
7483 7479
7484static void igb_shutdown(struct pci_dev *pdev) 7480static void igb_shutdown(struct pci_dev *pdev)
7485{ 7481{