Merge branch 'core/urgent' into core/rcu
[pandora-kernel.git] / drivers / staging / rspiusb / rspiusb.c
index ca281d6..ecaffb5 100644 (file)
@@ -781,9 +781,8 @@ static int piusb_probe(struct usb_interface *interface,
                        dbg("Endpoint[%d]->MaxPacketSize = %d\n", i,
                            endpoint->wMaxPacketSize);
                }
-               if ((endpoint->bmAttributes & USB_ENDPOINT_XFERTYPE_MASK) ==
-                   USB_ENDPOINT_XFER_BULK) {
-                       if (endpoint->bEndpointAddress & USB_DIR_IN)
+               if (usb_endpoint_xfer_bulk(endpoint)) {
+                       if (usb_endpoint_dir_in(endpoint))
                                pdx->hEP[i] =
                                    usb_rcvbulkpipe(pdx->udev,
                                                    endpoint->bEndpointAddress);