usb: host: ehci-vf: Remove hardcoded USB host client configuration
authorSanchayan Maity <maitysanchayan@gmail.com>
Mon, 26 Oct 2015 12:58:49 +0000 (18:28 +0530)
committerMarek Vasut <marex@denx.de>
Sat, 16 Jan 2016 06:06:55 +0000 (07:06 +0100)
The current ehci-vf USB driver for Vybrid hardcodes the USB host
and client functionality. Remove this.

Reported-by: Santhosh Kumar Janardhanam <santhosh.kj@hcl.com>
Signed-off-by: Sanchayan Maity <maitysanchayan@gmail.com>
drivers/usb/host/ehci-vf.c

index 98e0fc6..351e0fb 100644 (file)
@@ -134,11 +134,6 @@ int ehci_hcd_init(int index, enum usb_init_type init,
        if (index >= ARRAY_SIZE(nc_reg_bases))
                return -EINVAL;
 
-       if (init == USB_INIT_DEVICE && index == 1)
-               return -ENODEV;
-       if (init == USB_INIT_HOST && index == 0)
-               return -ENODEV;
-
        ehci = (struct usb_ehci *)nc_reg_bases[index];
 
        /* Do board specific initialisation */