diff options
Diffstat (limited to 'drivers/usb/host/xhci-pci.c')
-rw-r--r-- | drivers/usb/host/xhci-pci.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/usb/host/xhci-pci.c b/drivers/usb/host/xhci-pci.c index 417d37aff8d7..edffd81fc253 100644 --- a/drivers/usb/host/xhci-pci.c +++ b/drivers/usb/host/xhci-pci.c | |||
@@ -54,7 +54,7 @@ static int xhci_pci_setup(struct usb_hcd *hcd) | |||
54 | struct pci_dev *pdev = to_pci_dev(hcd->self.controller); | 54 | struct pci_dev *pdev = to_pci_dev(hcd->self.controller); |
55 | int retval; | 55 | int retval; |
56 | 56 | ||
57 | hcd->self.sg_tablesize = TRBS_PER_SEGMENT - 1; | 57 | hcd->self.sg_tablesize = TRBS_PER_SEGMENT - 2; |
58 | 58 | ||
59 | xhci->cap_regs = hcd->regs; | 59 | xhci->cap_regs = hcd->regs; |
60 | xhci->op_regs = hcd->regs + | 60 | xhci->op_regs = hcd->regs + |
@@ -132,6 +132,8 @@ static const struct hc_driver xhci_pci_hc_driver = { | |||
132 | .urb_dequeue = xhci_urb_dequeue, | 132 | .urb_dequeue = xhci_urb_dequeue, |
133 | .alloc_dev = xhci_alloc_dev, | 133 | .alloc_dev = xhci_alloc_dev, |
134 | .free_dev = xhci_free_dev, | 134 | .free_dev = xhci_free_dev, |
135 | .alloc_streams = xhci_alloc_streams, | ||
136 | .free_streams = xhci_free_streams, | ||
135 | .add_endpoint = xhci_add_endpoint, | 137 | .add_endpoint = xhci_add_endpoint, |
136 | .drop_endpoint = xhci_drop_endpoint, | 138 | .drop_endpoint = xhci_drop_endpoint, |
137 | .endpoint_reset = xhci_endpoint_reset, | 139 | .endpoint_reset = xhci_endpoint_reset, |
@@ -175,12 +177,12 @@ static struct pci_driver xhci_pci_driver = { | |||
175 | .shutdown = usb_hcd_pci_shutdown, | 177 | .shutdown = usb_hcd_pci_shutdown, |
176 | }; | 178 | }; |
177 | 179 | ||
178 | int xhci_register_pci() | 180 | int xhci_register_pci(void) |
179 | { | 181 | { |
180 | return pci_register_driver(&xhci_pci_driver); | 182 | return pci_register_driver(&xhci_pci_driver); |
181 | } | 183 | } |
182 | 184 | ||
183 | void xhci_unregister_pci() | 185 | void xhci_unregister_pci(void) |
184 | { | 186 | { |
185 | pci_unregister_driver(&xhci_pci_driver); | 187 | pci_unregister_driver(&xhci_pci_driver); |
186 | } | 188 | } |