USB: rename usb_buffer_alloc() and usb_buffer_free() users
[linux-2.6.git] / drivers / media / dvb / dvb-usb / usb-urb.c
index f9702e3..86d6893 100644 (file)
@@ -96,8 +96,9 @@ static int usb_free_stream_buffers(struct usb_data_stream *stream)
                while (stream->buf_num) {
                        stream->buf_num--;
                        deb_mem("freeing buffer %d\n",stream->buf_num);
-                       usb_buffer_free(stream->udev, stream->buf_size,
-                                       stream->buf_list[stream->buf_num], stream->dma_addr[stream->buf_num]);
+                       usb_free_coherent(stream->udev, stream->buf_size,
+                                         stream->buf_list[stream->buf_num],
+                                         stream->dma_addr[stream->buf_num]);
                }
        }
 
@@ -116,7 +117,7 @@ static int usb_allocate_stream_buffers(struct usb_data_stream *stream, int num,
        for (stream->buf_num = 0; stream->buf_num < num; stream->buf_num++) {
                deb_mem("allocating buffer %d\n",stream->buf_num);
                if (( stream->buf_list[stream->buf_num] =
-                                       usb_buffer_alloc(stream->udev, size, GFP_ATOMIC,
+                                       usb_alloc_coherent(stream->udev, size, GFP_ATOMIC,
                                        &stream->dma_addr[stream->buf_num]) ) == NULL) {
                        deb_mem("not enough memory for urb-buffer allocation.\n");
                        usb_free_stream_buffers(stream);