diff options
author | Nikhil Badola <nikhil.badola@freescale.com> | 2015-06-07 06:58:04 (GMT) |
---|---|---|
committer | Marek Vasut <marex@denx.de> | 2015-06-07 13:46:02 (GMT) |
commit | 19b17d12549fbd670e516e40757265e406153da3 (patch) | |
tree | 5ec1dbe4a73ba94128015f6e3ae7f39c254aba03 /drivers/usb/host | |
parent | 5bcec545a6ca977ad74ee9fe0f2b335d348b5000 (diff) | |
download | u-boot-19b17d12549fbd670e516e40757265e406153da3.tar.xz |
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>
Diffstat (limited to 'drivers/usb/host')
-rw-r--r-- | drivers/usb/host/ehci-fsl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/host/ehci-fsl.c b/drivers/usb/host/ehci-fsl.c index 5fd618d..97b7f14 100644 --- a/drivers/usb/host/ehci-fsl.c +++ b/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); |