aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/gspca/benq.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/video/gspca/benq.c')
-rw-r--r--drivers/media/video/gspca/benq.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/video/gspca/benq.c b/drivers/media/video/gspca/benq.c
index 43ac4af8d3ed..fce8d9492641 100644
--- a/drivers/media/video/gspca/benq.c
+++ b/drivers/media/video/gspca/benq.c
@@ -117,13 +117,13 @@ static int sd_start(struct gspca_dev *gspca_dev)
117 return -ENOMEM; 117 return -ENOMEM;
118 } 118 }
119 gspca_dev->urb[n] = urb; 119 gspca_dev->urb[n] = urb;
120 urb->transfer_buffer = usb_buffer_alloc(gspca_dev->dev, 120 urb->transfer_buffer = usb_alloc_coherent(gspca_dev->dev,
121 SD_PKT_SZ * SD_NPKT, 121 SD_PKT_SZ * SD_NPKT,
122 GFP_KERNEL, 122 GFP_KERNEL,
123 &urb->transfer_dma); 123 &urb->transfer_dma);
124 124
125 if (urb->transfer_buffer == NULL) { 125 if (urb->transfer_buffer == NULL) {
126 err("usb_buffer_alloc failed"); 126 err("usb_alloc_coherent failed");
127 return -ENOMEM; 127 return -ENOMEM;
128 } 128 }
129 urb->dev = gspca_dev->dev; 129 urb->dev = gspca_dev->dev;