Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 131479
b: refs/heads/master
c: 3494252
h: refs/heads/master
i:
  131477: 3d28bb6
  131475: fb8c868
  131471: 833c7fc
v: v3
  • Loading branch information
Rafael J. Wysocki authored and Linus Torvalds committed Feb 18, 2009
1 parent 76358a8 commit f3c9794
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 18 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e78ac4b9deb8f36d8c828b6d91232960f109d951
refs/heads/master: 3494252d5644993f407a45f01c3e8ad5ae38f93c
15 changes: 2 additions & 13 deletions trunk/drivers/usb/core/hcd-pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -297,19 +297,6 @@ int usb_hcd_pci_suspend(struct pci_dev *dev, pm_message_t message)
}
EXPORT_SYMBOL_GPL(usb_hcd_pci_suspend);

/**
* usb_hcd_pci_resume_early - resume a PCI-based HCD before IRQs are enabled
* @dev: USB Host Controller being resumed
*
* Store this function in the HCD's struct pci_driver as .resume_early.
*/
int usb_hcd_pci_resume_early(struct pci_dev *dev)
{
pci_restore_state(dev);
return 0;
}
EXPORT_SYMBOL_GPL(usb_hcd_pci_resume_early);

/**
* usb_hcd_pci_resume - power management resume of a PCI-based HCD
* @dev: USB Host Controller being resumed
Expand All @@ -333,6 +320,8 @@ int usb_hcd_pci_resume(struct pci_dev *dev)
}
#endif

pci_restore_state(dev);

hcd = pci_get_drvdata(dev);
if (hcd->state != HC_STATE_SUSPENDED) {
dev_dbg(hcd->self.controller,
Expand Down
1 change: 0 additions & 1 deletion trunk/drivers/usb/core/hcd.h
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,6 @@ extern void usb_hcd_pci_remove(struct pci_dev *dev);

#ifdef CONFIG_PM
extern int usb_hcd_pci_suspend(struct pci_dev *dev, pm_message_t msg);
extern int usb_hcd_pci_resume_early(struct pci_dev *dev);
extern int usb_hcd_pci_resume(struct pci_dev *dev);
#endif /* CONFIG_PM */

Expand Down
1 change: 0 additions & 1 deletion trunk/drivers/usb/host/ehci-pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,6 @@ static struct pci_driver ehci_pci_driver = {

#ifdef CONFIG_PM
.suspend = usb_hcd_pci_suspend,
.resume_early = usb_hcd_pci_resume_early,
.resume = usb_hcd_pci_resume,
#endif
.shutdown = usb_hcd_pci_shutdown,
Expand Down
1 change: 0 additions & 1 deletion trunk/drivers/usb/host/ohci-pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,6 @@ static struct pci_driver ohci_pci_driver = {

#ifdef CONFIG_PM
.suspend = usb_hcd_pci_suspend,
.resume_early = usb_hcd_pci_resume_early,
.resume = usb_hcd_pci_resume,
#endif

Expand Down
1 change: 0 additions & 1 deletion trunk/drivers/usb/host/uhci-hcd.c
Original file line number Diff line number Diff line change
Expand Up @@ -942,7 +942,6 @@ static struct pci_driver uhci_pci_driver = {

#ifdef CONFIG_PM
.suspend = usb_hcd_pci_suspend,
.resume_early = usb_hcd_pci_resume_early,
.resume = usb_hcd_pci_resume,
#endif /* PM */
};
Expand Down

0 comments on commit f3c9794

Please sign in to comment.