]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - drivers/usb/host/ehci-fsl.c
drivers: usb: fsl: Return if USB_MAX_CONTROLLER_COUNT is incorrect
[karo-tx-uboot.git] / drivers / usb / host / ehci-fsl.c
index 5fd618df87bb876df1cb38d21c73185ef2463ee8..97b7f14542591cf22e4e576ddbc21512f1e49fa9 100644 (file)
@@ -76,7 +76,7 @@ int ehci_hcd_init(int index, enum usb_init_type init,
                break;
        default:
                printf("ERROR: wrong controller index!!\n");
-               break;
+               return -EINVAL;
        };
 
        *hccr = (struct ehci_hccr *)((uint32_t)&ehci->caplength);