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/input/tablet | |
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/input/tablet')
-rw-r--r-- | drivers/input/tablet/acecad.c | 6 | ||||
-rw-r--r-- | drivers/input/tablet/aiptek.c | 14 | ||||
-rw-r--r-- | drivers/input/tablet/gtco.c | 12 | ||||
-rw-r--r-- | drivers/input/tablet/kbtab.c | 6 | ||||
-rw-r--r-- | drivers/input/tablet/wacom_sys.c | 8 |
5 files changed, 23 insertions, 23 deletions
diff --git a/drivers/input/tablet/acecad.c b/drivers/input/tablet/acecad.c index 37d0539fefa0..aea9a9399a36 100644 --- a/drivers/input/tablet/acecad.c +++ b/drivers/input/tablet/acecad.c | |||
@@ -155,7 +155,7 @@ static int usb_acecad_probe(struct usb_interface *intf, const struct usb_device_ | |||
155 | goto fail1; | 155 | goto fail1; |
156 | } | 156 | } |
157 | 157 | ||
158 | acecad->data = usb_buffer_alloc(dev, 8, GFP_KERNEL, &acecad->data_dma); | 158 | acecad->data = usb_alloc_coherent(dev, 8, GFP_KERNEL, &acecad->data_dma); |
159 | if (!acecad->data) { | 159 | if (!acecad->data) { |
160 | err= -ENOMEM; | 160 | err= -ENOMEM; |
161 | goto fail1; | 161 | goto fail1; |
@@ -235,7 +235,7 @@ static int usb_acecad_probe(struct usb_interface *intf, const struct usb_device_ | |||
235 | 235 | ||
236 | return 0; | 236 | return 0; |
237 | 237 | ||
238 | fail2: usb_buffer_free(dev, 8, acecad->data, acecad->data_dma); | 238 | fail2: usb_free_coherent(dev, 8, acecad->data, acecad->data_dma); |
239 | fail1: input_free_device(input_dev); | 239 | fail1: input_free_device(input_dev); |
240 | kfree(acecad); | 240 | kfree(acecad); |
241 | return err; | 241 | return err; |
@@ -249,7 +249,7 @@ static void usb_acecad_disconnect(struct usb_interface *intf) | |||
249 | 249 | ||
250 | input_unregister_device(acecad->input); | 250 | input_unregister_device(acecad->input); |
251 | usb_free_urb(acecad->irq); | 251 | usb_free_urb(acecad->irq); |
252 | usb_buffer_free(acecad->usbdev, 8, acecad->data, acecad->data_dma); | 252 | usb_free_coherent(acecad->usbdev, 8, acecad->data, acecad->data_dma); |
253 | kfree(acecad); | 253 | kfree(acecad); |
254 | } | 254 | } |
255 | 255 | ||
diff --git a/drivers/input/tablet/aiptek.c b/drivers/input/tablet/aiptek.c index 4be039d7dcad..51b80b08d467 100644 --- a/drivers/input/tablet/aiptek.c +++ b/drivers/input/tablet/aiptek.c | |||
@@ -1711,8 +1711,8 @@ aiptek_probe(struct usb_interface *intf, const struct usb_device_id *id) | |||
1711 | goto fail1; | 1711 | goto fail1; |
1712 | } | 1712 | } |
1713 | 1713 | ||
1714 | aiptek->data = usb_buffer_alloc(usbdev, AIPTEK_PACKET_LENGTH, | 1714 | aiptek->data = usb_alloc_coherent(usbdev, AIPTEK_PACKET_LENGTH, |
1715 | GFP_ATOMIC, &aiptek->data_dma); | 1715 | GFP_ATOMIC, &aiptek->data_dma); |
1716 | if (!aiptek->data) { | 1716 | if (!aiptek->data) { |
1717 | dev_warn(&intf->dev, "cannot allocate usb buffer\n"); | 1717 | dev_warn(&intf->dev, "cannot allocate usb buffer\n"); |
1718 | goto fail1; | 1718 | goto fail1; |
@@ -1884,8 +1884,8 @@ aiptek_probe(struct usb_interface *intf, const struct usb_device_id *id) | |||
1884 | 1884 | ||
1885 | fail4: sysfs_remove_group(&intf->dev.kobj, &aiptek_attribute_group); | 1885 | fail4: sysfs_remove_group(&intf->dev.kobj, &aiptek_attribute_group); |
1886 | fail3: usb_free_urb(aiptek->urb); | 1886 | fail3: usb_free_urb(aiptek->urb); |
1887 | fail2: usb_buffer_free(usbdev, AIPTEK_PACKET_LENGTH, aiptek->data, | 1887 | fail2: usb_free_coherent(usbdev, AIPTEK_PACKET_LENGTH, aiptek->data, |
1888 | aiptek->data_dma); | 1888 | aiptek->data_dma); |
1889 | fail1: usb_set_intfdata(intf, NULL); | 1889 | fail1: usb_set_intfdata(intf, NULL); |
1890 | input_free_device(inputdev); | 1890 | input_free_device(inputdev); |
1891 | kfree(aiptek); | 1891 | kfree(aiptek); |
@@ -1909,9 +1909,9 @@ static void aiptek_disconnect(struct usb_interface *intf) | |||
1909 | input_unregister_device(aiptek->inputdev); | 1909 | input_unregister_device(aiptek->inputdev); |
1910 | sysfs_remove_group(&intf->dev.kobj, &aiptek_attribute_group); | 1910 | sysfs_remove_group(&intf->dev.kobj, &aiptek_attribute_group); |
1911 | usb_free_urb(aiptek->urb); | 1911 | usb_free_urb(aiptek->urb); |
1912 | usb_buffer_free(interface_to_usbdev(intf), | 1912 | usb_free_coherent(interface_to_usbdev(intf), |
1913 | AIPTEK_PACKET_LENGTH, | 1913 | AIPTEK_PACKET_LENGTH, |
1914 | aiptek->data, aiptek->data_dma); | 1914 | aiptek->data, aiptek->data_dma); |
1915 | kfree(aiptek); | 1915 | kfree(aiptek); |
1916 | } | 1916 | } |
1917 | } | 1917 | } |
diff --git a/drivers/input/tablet/gtco.c b/drivers/input/tablet/gtco.c index 866a9ee1af1a..8ea6afe2e992 100644 --- a/drivers/input/tablet/gtco.c +++ b/drivers/input/tablet/gtco.c | |||
@@ -850,8 +850,8 @@ static int gtco_probe(struct usb_interface *usbinterface, | |||
850 | gtco->usbdev = usb_get_dev(interface_to_usbdev(usbinterface)); | 850 | gtco->usbdev = usb_get_dev(interface_to_usbdev(usbinterface)); |
851 | 851 | ||
852 | /* Allocate some data for incoming reports */ | 852 | /* Allocate some data for incoming reports */ |
853 | gtco->buffer = usb_buffer_alloc(gtco->usbdev, REPORT_MAX_SIZE, | 853 | gtco->buffer = usb_alloc_coherent(gtco->usbdev, REPORT_MAX_SIZE, |
854 | GFP_KERNEL, >co->buf_dma); | 854 | GFP_KERNEL, >co->buf_dma); |
855 | if (!gtco->buffer) { | 855 | if (!gtco->buffer) { |
856 | err("No more memory for us buffers"); | 856 | err("No more memory for us buffers"); |
857 | error = -ENOMEM; | 857 | error = -ENOMEM; |
@@ -982,8 +982,8 @@ static int gtco_probe(struct usb_interface *usbinterface, | |||
982 | err_free_urb: | 982 | err_free_urb: |
983 | usb_free_urb(gtco->urbinfo); | 983 | usb_free_urb(gtco->urbinfo); |
984 | err_free_buf: | 984 | err_free_buf: |
985 | usb_buffer_free(gtco->usbdev, REPORT_MAX_SIZE, | 985 | usb_free_coherent(gtco->usbdev, REPORT_MAX_SIZE, |
986 | gtco->buffer, gtco->buf_dma); | 986 | gtco->buffer, gtco->buf_dma); |
987 | err_free_devs: | 987 | err_free_devs: |
988 | input_free_device(input_dev); | 988 | input_free_device(input_dev); |
989 | kfree(gtco); | 989 | kfree(gtco); |
@@ -1005,8 +1005,8 @@ static void gtco_disconnect(struct usb_interface *interface) | |||
1005 | input_unregister_device(gtco->inputdevice); | 1005 | input_unregister_device(gtco->inputdevice); |
1006 | usb_kill_urb(gtco->urbinfo); | 1006 | usb_kill_urb(gtco->urbinfo); |
1007 | usb_free_urb(gtco->urbinfo); | 1007 | usb_free_urb(gtco->urbinfo); |
1008 | usb_buffer_free(gtco->usbdev, REPORT_MAX_SIZE, | 1008 | usb_free_coherent(gtco->usbdev, REPORT_MAX_SIZE, |
1009 | gtco->buffer, gtco->buf_dma); | 1009 | gtco->buffer, gtco->buf_dma); |
1010 | kfree(gtco); | 1010 | kfree(gtco); |
1011 | } | 1011 | } |
1012 | 1012 | ||
diff --git a/drivers/input/tablet/kbtab.c b/drivers/input/tablet/kbtab.c index b9969f120247..290f4e57b589 100644 --- a/drivers/input/tablet/kbtab.c +++ b/drivers/input/tablet/kbtab.c | |||
@@ -122,7 +122,7 @@ static int kbtab_probe(struct usb_interface *intf, const struct usb_device_id *i | |||
122 | if (!kbtab || !input_dev) | 122 | if (!kbtab || !input_dev) |
123 | goto fail1; | 123 | goto fail1; |
124 | 124 | ||
125 | kbtab->data = usb_buffer_alloc(dev, 8, GFP_KERNEL, &kbtab->data_dma); | 125 | kbtab->data = usb_alloc_coherent(dev, 8, GFP_KERNEL, &kbtab->data_dma); |
126 | if (!kbtab->data) | 126 | if (!kbtab->data) |
127 | goto fail1; | 127 | goto fail1; |
128 | 128 | ||
@@ -173,7 +173,7 @@ static int kbtab_probe(struct usb_interface *intf, const struct usb_device_id *i | |||
173 | return 0; | 173 | return 0; |
174 | 174 | ||
175 | fail3: usb_free_urb(kbtab->irq); | 175 | fail3: usb_free_urb(kbtab->irq); |
176 | fail2: usb_buffer_free(dev, 8, kbtab->data, kbtab->data_dma); | 176 | fail2: usb_free_coherent(dev, 8, kbtab->data, kbtab->data_dma); |
177 | fail1: input_free_device(input_dev); | 177 | fail1: input_free_device(input_dev); |
178 | kfree(kbtab); | 178 | kfree(kbtab); |
179 | return error; | 179 | return error; |
@@ -187,7 +187,7 @@ static void kbtab_disconnect(struct usb_interface *intf) | |||
187 | 187 | ||
188 | input_unregister_device(kbtab->dev); | 188 | input_unregister_device(kbtab->dev); |
189 | usb_free_urb(kbtab->irq); | 189 | usb_free_urb(kbtab->irq); |
190 | usb_buffer_free(kbtab->usbdev, 8, kbtab->data, kbtab->data_dma); | 190 | usb_free_coherent(kbtab->usbdev, 8, kbtab->data, kbtab->data_dma); |
191 | kfree(kbtab); | 191 | kfree(kbtab); |
192 | } | 192 | } |
193 | 193 | ||
diff --git a/drivers/input/tablet/wacom_sys.c b/drivers/input/tablet/wacom_sys.c index d90f4e00e51d..2dc0c07c0469 100644 --- a/drivers/input/tablet/wacom_sys.c +++ b/drivers/input/tablet/wacom_sys.c | |||
@@ -465,8 +465,8 @@ static int wacom_probe(struct usb_interface *intf, const struct usb_device_id *i | |||
465 | goto fail1; | 465 | goto fail1; |
466 | } | 466 | } |
467 | 467 | ||
468 | wacom_wac->data = usb_buffer_alloc(dev, WACOM_PKGLEN_MAX, | 468 | wacom_wac->data = usb_alloc_coherent(dev, WACOM_PKGLEN_MAX, |
469 | GFP_KERNEL, &wacom->data_dma); | 469 | GFP_KERNEL, &wacom->data_dma); |
470 | if (!wacom_wac->data) { | 470 | if (!wacom_wac->data) { |
471 | error = -ENOMEM; | 471 | error = -ENOMEM; |
472 | goto fail1; | 472 | goto fail1; |
@@ -536,7 +536,7 @@ static int wacom_probe(struct usb_interface *intf, const struct usb_device_id *i | |||
536 | 536 | ||
537 | fail4: wacom_remove_shared_data(wacom_wac); | 537 | fail4: wacom_remove_shared_data(wacom_wac); |
538 | fail3: usb_free_urb(wacom->irq); | 538 | fail3: usb_free_urb(wacom->irq); |
539 | fail2: usb_buffer_free(dev, WACOM_PKGLEN_MAX, wacom_wac->data, wacom->data_dma); | 539 | fail2: usb_free_coherent(dev, WACOM_PKGLEN_MAX, wacom_wac->data, wacom->data_dma); |
540 | fail1: input_free_device(input_dev); | 540 | fail1: input_free_device(input_dev); |
541 | kfree(wacom); | 541 | kfree(wacom); |
542 | return error; | 542 | return error; |
@@ -551,7 +551,7 @@ static void wacom_disconnect(struct usb_interface *intf) | |||
551 | usb_kill_urb(wacom->irq); | 551 | usb_kill_urb(wacom->irq); |
552 | input_unregister_device(wacom->wacom_wac.input); | 552 | input_unregister_device(wacom->wacom_wac.input); |
553 | usb_free_urb(wacom->irq); | 553 | usb_free_urb(wacom->irq); |
554 | usb_buffer_free(interface_to_usbdev(intf), WACOM_PKGLEN_MAX, | 554 | usb_free_coherent(interface_to_usbdev(intf), WACOM_PKGLEN_MAX, |
555 | wacom->wacom_wac.data, wacom->data_dma); | 555 | wacom->wacom_wac.data, wacom->data_dma); |
556 | wacom_remove_shared_data(&wacom->wacom_wac); | 556 | wacom_remove_shared_data(&wacom->wacom_wac); |
557 | kfree(wacom); | 557 | kfree(wacom); |