X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=drivers%2Fusb%2Fhost%2Fohci-pci.c;h=dc8bc13bf0aaa872860bef83aeb67ecb9dffcb28;hb=9bf4aaab3e101692164d49b7ca357651eb691cb6;hp=0e7f9f804a96950134440c3f84c858c69981c2c1;hpb=db216c3d5e4c040e557a50f8f5d35d5c415e8c1c;p=linux-2.6.git diff --git a/drivers/usb/host/ohci-pci.c b/drivers/usb/host/ohci-pci.c index 0e7f9f804..dc8bc13bf 100644 --- a/drivers/usb/host/ohci-pci.c +++ b/drivers/usb/host/ohci-pci.c @@ -125,7 +125,7 @@ static int ohci_pci_suspend (struct usb_hcd *hcd, u32 state) msleep (100); #ifdef CONFIG_USB_SUSPEND - (void) usb_suspend_device (hcd->self.root_hub); + (void) usb_suspend_device (hcd->self.root_hub, state); #else down (&hcd->self.root_hub->serialize); (void) ohci_hub_suspend (hcd); @@ -238,6 +238,10 @@ static const struct hc_driver ohci_pci_hc_driver = { */ .hub_status_data = ohci_hub_status_data, .hub_control = ohci_hub_control, +#ifdef CONFIG_USB_SUSPEND + .hub_suspend = ohci_hub_suspend, + .hub_resume = ohci_hub_resume, +#endif }; /*-------------------------------------------------------------------------*/