瀏覽代碼

usb: musb: do not error out if Kconfig doesn't match board mode

During development, even though board is wired
to e.g. OTG, we might want to compile host-only
or peripheral-only configurations.

Let's allow that to happen.

Signed-off-by: Felipe Balbi <balbi@ti.com>
Felipe Balbi 14 年之前
父節點
當前提交
75a14b1434
共有 1 個文件被更改,包括 0 次插入25 次删除
  1. 0 25
      drivers/usb/musb/musb_core.c

+ 0 - 25
drivers/usb/musb/musb_core.c

@@ -1949,31 +1949,6 @@ musb_init_controller(struct device *dev, int nIrq, void __iomem *ctrl)
 		goto fail0;
 		goto fail0;
 	}
 	}
 
 
-	switch (plat->mode) {
-	case MUSB_HOST:
-#ifdef CONFIG_USB_MUSB_HDRC_HCD
-		break;
-#else
-		goto bad_config;
-#endif
-	case MUSB_PERIPHERAL:
-#ifdef CONFIG_USB_GADGET_MUSB_HDRC
-		break;
-#else
-		goto bad_config;
-#endif
-	case MUSB_OTG:
-#ifdef CONFIG_USB_MUSB_OTG
-		break;
-#else
-bad_config:
-#endif
-	default:
-		dev_err(dev, "incompatible Kconfig role setting\n");
-		status = -EINVAL;
-		goto fail0;
-	}
-
 	/* allocate */
 	/* allocate */
 	musb = allocate_instance(dev, plat->config, ctrl);
 	musb = allocate_instance(dev, plat->config, ctrl);
 	if (!musb) {
 	if (!musb) {