gspca/konica: Fix compilation merge conflict
authorMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 6 Sep 2010 16:57:22 +0000 (13:57 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 21 Oct 2010 03:04:46 +0000 (01:04 -0200)
drivers/media/video/gspca/konica.c: In function ‘sd_start’:
drivers/media/video/gspca/konica.c:322: error: implicit declaration of function ‘usb_buffer_alloc’
drivers/media/video/gspca/konica.c:325: warning: assignment makes pointer from integer without a cast
make[3]: ** [drivers/media/video/gspca/konica.o] Erro 1

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/gspca/konica.c

index 8cdf1af..3de67ee 100644 (file)
@@ -319,7 +319,7 @@ static int sd_start(struct gspca_dev *gspca_dev)
                        return -ENOMEM;
                }
                gspca_dev->urb[n] = urb;
-               urb->transfer_buffer = usb_buffer_alloc(gspca_dev->dev,
+               urb->transfer_buffer = usb_alloc_coherent(gspca_dev->dev,
                                                packet_size * SD_NPKT,
                                                GFP_KERNEL,
                                                &urb->transfer_dma);