diff options
author | Nikhil Badola <nikhil.badola@freescale.com> | 2015-06-07 12:28:04 +0530 |
---|---|---|
committer | Marek Vasut <marex@denx.de> | 2015-06-07 15:46:02 +0200 |
commit | 19b17d12549fbd670e516e40757265e406153da3 (patch) | |
tree | 5ec1dbe4a73ba94128015f6e3ae7f39c254aba03 /drivers/usb | |
parent | 5bcec545a6ca977ad74ee9fe0f2b335d348b5000 (diff) | |
download | u-boot-imx-19b17d12549fbd670e516e40757265e406153da3.zip u-boot-imx-19b17d12549fbd670e516e40757265e406153da3.tar.gz u-boot-imx-19b17d12549fbd670e516e40757265e406153da3.tar.bz2 |
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')
-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); |