diff options
| author | Nikhil Badola <[email protected]> | 2015-06-07 12:28:04 +0530 |
|---|---|---|
| committer | Marek Vasut <[email protected]> | 2015-06-07 15:46:02 +0200 |
| commit | 19b17d12549fbd670e516e40757265e406153da3 (patch) | |
| tree | 5ec1dbe4a73ba94128015f6e3ae7f39c254aba03 /drivers | |
| parent | 5bcec545a6ca977ad74ee9fe0f2b335d348b5000 (diff) | |
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 <[email protected]>
Diffstat (limited to 'drivers')
| -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 5fd618df87b..97b7f145425 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); |
