staging: vt6656: PIPEnsInterruptRead use usb_fill_int_urb
authorMalcolm Priestley <tvboxspy@gmail.com>
Wed, 19 Feb 2014 18:35:22 +0000 (18:35 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 25 Feb 2014 00:54:53 +0000 (16:54 -0800)
Change to usb_fill_int_urb which has int_interval.

Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vt6656/usbpipe.c

index 119f656032418955c647fd569d2b59910fb1bbe5..845a8a12a3e44418936a0b8d808f87771d7a8245 100644 (file)
@@ -312,15 +312,15 @@ int PIPEnsInterruptRead(struct vnt_private *pDevice)
     // Now that we have created the urb, we will send a
     // request to the USB device object.
     //
-    pDevice->pInterruptURB->interval = pDevice->int_interval;
 
-usb_fill_bulk_urb(pDevice->pInterruptURB,
+       usb_fill_int_urb(pDevice->pInterruptURB,
                pDevice->usb,
                usb_rcvbulkpipe(pDevice->usb, 1),
-               (void *) pDevice->intBuf.pDataBuf,
+               pDevice->intBuf.pDataBuf,
                MAX_INTERRUPT_SIZE,
                s_nsInterruptUsbIoCompleteRead,
-               pDevice);
+               pDevice,
+               pDevice->int_interval);
 
        ntStatus = usb_submit_urb(pDevice->pInterruptURB, GFP_ATOMIC);
        if (ntStatus != 0) {