summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorNikhil Badola <nikhil.badola@freescale.com>2015-06-07 12:28:04 +0530
committerMarek Vasut <marex@denx.de>2015-06-07 15:46:02 +0200
commit19b17d12549fbd670e516e40757265e406153da3 (patch)
tree5ec1dbe4a73ba94128015f6e3ae7f39c254aba03 /drivers
parent5bcec545a6ca977ad74ee9fe0f2b335d348b5000 (diff)
downloadtalos-obmc-uboot-19b17d12549fbd670e516e40757265e406153da3.tar.gz
talos-obmc-uboot-19b17d12549fbd670e516e40757265e406153da3.zip
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')
-rw-r--r--drivers/usb/host/ehci-fsl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/host/ehci-fsl.c b/drivers/usb/host/ehci-fsl.c
index 5fd618df87..97b7f14542 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);
OpenPOWER on IntegriCloud