diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2010-05-21 00:26:12 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-05-21 00:26:12 -0400 |
commit | 7a9b149212f3716c598afe973b6261fd58453b7a (patch) | |
tree | 477716d84c71da124448b72278e98da28aadbd3d /drivers/usb/host/xhci-pci.c | |
parent | 3d62e3fdce8ef265a3706c52ae1ca6ab84e30f0e (diff) | |
parent | e26bcf37234c67624f62d9fc95f922b8dbda1363 (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb-2.6: (229 commits)
USB: remove unused usb_buffer_alloc and usb_buffer_free macros
usb: musb: update gfp/slab.h includes
USB: ftdi_sio: fix legacy SIO-device header
USB: kl5usb105: reimplement using generic framework
USB: kl5usb105: minor clean ups
USB: kl5usb105: fix memory leak
USB: io_ti: use kfifo to implement write buffering
USB: io_ti: remove unsused private counter
USB: ti_usb: use kfifo to implement write buffering
USB: ir-usb: fix incorrect write-buffer length
USB: aircable: fix incorrect write-buffer length
USB: safe_serial: straighten out read processing
USB: safe_serial: reimplement read using generic framework
USB: safe_serial: reimplement write using generic framework
usb-storage: always print quirks
USB: usb-storage: trivial debug improvements
USB: oti6858: use port write fifo
USB: oti6858: use kfifo to implement write buffering
USB: cypress_m8: use kfifo to implement write buffering
USB: cypress_m8: remove unused drain define
...
Fix up conflicts (due to usb_buffer_alloc/free renaming) in
drivers/input/tablet/acecad.c
drivers/input/tablet/kbtab.c
drivers/input/tablet/wacom_sys.c
drivers/media/video/gspca/gspca.c
sound/usb/usbaudio.c
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 | } |