The PIPE_INTERRUPT flag is used wrong
[platform/kernel/u-boot.git] / cpu / leon3 / usb_uhci.c
index 7910beb..8f99e1d 100644 (file)
@@ -901,7 +901,7 @@ int uhci_submit_rh_msg(struct usb_device *dev, unsigned long pipe, void *buffer,
        unsigned short wIndex;
        unsigned short wLength;
 
-       if ((pipe & PIPE_INTERRUPT) == PIPE_INTERRUPT) {
+       if (usb_pipeint(pipe)) {
                printf("Root-Hub submit IRQ: NOT implemented\n");
                return 0;
        }