drivers: usb: fsl: Return if USB_MAX_CONTROLLER_COUNT is incorrect

Return if USB_MAX_CONTROLLER_COUNT hence the index of the controller
to be initialised is incorrect

Signed-off-by: Nikhil Badola <nikhil.badola@freescale.com>
master
Nikhil Badola 10 years ago committed by Marek Vasut
parent 5bcec545a6
commit 19b17d1254
  1. 2
      drivers/usb/host/ehci-fsl.c

@ -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);

Loading…
Cancel
Save