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/net/usb/kaweth.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/net/usb/kaweth.c')
-rw-r--r-- | drivers/net/usb/kaweth.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/net/usb/kaweth.c b/drivers/net/usb/kaweth.c index 46890dc625dc..d6078b8c4273 100644 --- a/drivers/net/usb/kaweth.c +++ b/drivers/net/usb/kaweth.c | |||
@@ -1155,13 +1155,13 @@ err_fw: | |||
1155 | if (!kaweth->irq_urb) | 1155 | if (!kaweth->irq_urb) |
1156 | goto err_tx_and_rx; | 1156 | goto err_tx_and_rx; |
1157 | 1157 | ||
1158 | kaweth->intbuffer = usb_buffer_alloc( kaweth->dev, | 1158 | kaweth->intbuffer = usb_alloc_coherent( kaweth->dev, |
1159 | INTBUFFERSIZE, | 1159 | INTBUFFERSIZE, |
1160 | GFP_KERNEL, | 1160 | GFP_KERNEL, |
1161 | &kaweth->intbufferhandle); | 1161 | &kaweth->intbufferhandle); |
1162 | if (!kaweth->intbuffer) | 1162 | if (!kaweth->intbuffer) |
1163 | goto err_tx_and_rx_and_irq; | 1163 | goto err_tx_and_rx_and_irq; |
1164 | kaweth->rx_buf = usb_buffer_alloc( kaweth->dev, | 1164 | kaweth->rx_buf = usb_alloc_coherent( kaweth->dev, |
1165 | KAWETH_BUF_SIZE, | 1165 | KAWETH_BUF_SIZE, |
1166 | GFP_KERNEL, | 1166 | GFP_KERNEL, |
1167 | &kaweth->rxbufferhandle); | 1167 | &kaweth->rxbufferhandle); |
@@ -1202,9 +1202,9 @@ err_fw: | |||
1202 | 1202 | ||
1203 | err_intfdata: | 1203 | err_intfdata: |
1204 | usb_set_intfdata(intf, NULL); | 1204 | usb_set_intfdata(intf, NULL); |
1205 | usb_buffer_free(kaweth->dev, KAWETH_BUF_SIZE, (void *)kaweth->rx_buf, kaweth->rxbufferhandle); | 1205 | usb_free_coherent(kaweth->dev, KAWETH_BUF_SIZE, (void *)kaweth->rx_buf, kaweth->rxbufferhandle); |
1206 | err_all_but_rxbuf: | 1206 | err_all_but_rxbuf: |
1207 | usb_buffer_free(kaweth->dev, INTBUFFERSIZE, (void *)kaweth->intbuffer, kaweth->intbufferhandle); | 1207 | usb_free_coherent(kaweth->dev, INTBUFFERSIZE, (void *)kaweth->intbuffer, kaweth->intbufferhandle); |
1208 | err_tx_and_rx_and_irq: | 1208 | err_tx_and_rx_and_irq: |
1209 | usb_free_urb(kaweth->irq_urb); | 1209 | usb_free_urb(kaweth->irq_urb); |
1210 | err_tx_and_rx: | 1210 | err_tx_and_rx: |
@@ -1241,8 +1241,8 @@ static void kaweth_disconnect(struct usb_interface *intf) | |||
1241 | usb_free_urb(kaweth->tx_urb); | 1241 | usb_free_urb(kaweth->tx_urb); |
1242 | usb_free_urb(kaweth->irq_urb); | 1242 | usb_free_urb(kaweth->irq_urb); |
1243 | 1243 | ||
1244 | usb_buffer_free(kaweth->dev, KAWETH_BUF_SIZE, (void *)kaweth->rx_buf, kaweth->rxbufferhandle); | 1244 | usb_free_coherent(kaweth->dev, KAWETH_BUF_SIZE, (void *)kaweth->rx_buf, kaweth->rxbufferhandle); |
1245 | usb_buffer_free(kaweth->dev, INTBUFFERSIZE, (void *)kaweth->intbuffer, kaweth->intbufferhandle); | 1245 | usb_free_coherent(kaweth->dev, INTBUFFERSIZE, (void *)kaweth->intbuffer, kaweth->intbufferhandle); |
1246 | 1246 | ||
1247 | free_netdev(netdev); | 1247 | free_netdev(netdev); |
1248 | } | 1248 | } |