[U-Boot] [PATCH] drivers:usb:fsl: Return if USB_MAX_CONTROLLER_COUNT is incorrect
Badola Nikhil
nikhil.badola at freescale.com
Fri Jun 5 06:19:16 CEST 2015
> -----Original Message-----
> From: Nikhil Badola [mailto:nikhil.badola at freescale.com]
> Sent: Tuesday, May 12, 2015 2:58 PM
> To: u-boot at lists.denx.de
> Cc: Badola Nikhil-B46172
> Subject: [PATCH] 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 at freescale.com>
> ---
> drivers/usb/host/ehci-fsl.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/usb/host/ehci-fsl.c b/drivers/usb/host/ehci-fsl.c index
> ed83eb4..1973e0b 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 -1;
> };
>
> *hccr = (struct ehci_hccr *)((uint32_t)&ehci->caplength);
> --
> 1.7.11.7
>
CCing Marek Vasut..
More information about the U-Boot
mailing list