瀏覽代碼

usb: host: ehci-vf: Remove hardcoded USB host client configuration

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>
Sanchayan Maity 9 年之前
父節點
當前提交
6089f75141
共有 1 個文件被更改,包括 0 次插入5 次删除
  1. 0 5
      drivers/usb/host/ehci-vf.c

+ 0 - 5
drivers/usb/host/ehci-vf.c

@@ -134,11 +134,6 @@ int ehci_hcd_init(int index, enum usb_init_type init,
 	if (index >= ARRAY_SIZE(nc_reg_bases))
 	if (index >= ARRAY_SIZE(nc_reg_bases))
 		return -EINVAL;
 		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];
 	ehci = (struct usb_ehci *)nc_reg_bases[index];
 
 
 	/* Do board specific initialisation */
 	/* Do board specific initialisation */