aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/core/hcd-pci.c
diff options
context:
space:
mode:
authorDmitry Torokhov <dmitry.torokhov@gmail.com>2015-02-10 14:35:36 -0500
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2015-02-10 14:35:36 -0500
commit4ba24fef3eb3b142197135223b90ced2f319cd53 (patch)
treea20c125b27740ec7b4c761b11d801108e1b316b2 /drivers/usb/core/hcd-pci.c
parent47c1ffb2b6b630894e9a16442611c056ab21c057 (diff)
parent98a4a59ee31a12105a2b84f5b8b515ac2cb208ef (diff)
Merge branch 'next' into for-linus
Prepare first round of input updates for 3.20.
Diffstat (limited to 'drivers/usb/core/hcd-pci.c')
-rw-r--r--drivers/usb/core/hcd-pci.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/drivers/usb/core/hcd-pci.c b/drivers/usb/core/hcd-pci.c
index efc953119ce2..9eb1cff28bd4 100644
--- a/drivers/usb/core/hcd-pci.c
+++ b/drivers/usb/core/hcd-pci.c
@@ -429,7 +429,6 @@ static int check_root_hub_suspended(struct device *dev)
429 return 0; 429 return 0;
430} 430}
431 431
432#if defined(CONFIG_PM_SLEEP) || defined(CONFIG_PM_RUNTIME)
433static int suspend_common(struct device *dev, bool do_wakeup) 432static int suspend_common(struct device *dev, bool do_wakeup)
434{ 433{
435 struct pci_dev *pci_dev = to_pci_dev(dev); 434 struct pci_dev *pci_dev = to_pci_dev(dev);
@@ -528,7 +527,6 @@ static int resume_common(struct device *dev, int event)
528 } 527 }
529 return retval; 528 return retval;
530} 529}
531#endif /* SLEEP || RUNTIME */
532 530
533#ifdef CONFIG_PM_SLEEP 531#ifdef CONFIG_PM_SLEEP
534 532
@@ -607,8 +605,6 @@ static int hcd_pci_restore(struct device *dev)
607 605
608#endif /* CONFIG_PM_SLEEP */ 606#endif /* CONFIG_PM_SLEEP */
609 607
610#ifdef CONFIG_PM_RUNTIME
611
612static int hcd_pci_runtime_suspend(struct device *dev) 608static int hcd_pci_runtime_suspend(struct device *dev)
613{ 609{
614 int retval; 610 int retval;
@@ -630,13 +626,6 @@ static int hcd_pci_runtime_resume(struct device *dev)
630 return retval; 626 return retval;
631} 627}
632 628
633#else
634
635#define hcd_pci_runtime_suspend NULL
636#define hcd_pci_runtime_resume NULL
637
638#endif /* CONFIG_PM_RUNTIME */
639
640const struct dev_pm_ops usb_hcd_pci_pm_ops = { 629const struct dev_pm_ops usb_hcd_pci_pm_ops = {
641 .suspend = hcd_pci_suspend, 630 .suspend = hcd_pci_suspend,
642 .suspend_noirq = hcd_pci_suspend_noirq, 631 .suspend_noirq = hcd_pci_suspend_noirq,