summaryrefslogtreecommitdiffstats
path: root/drivers/usb/musb
diff options
context:
space:
mode:
authorFelipe Balbi <balbi@ti.com>2011-02-16 12:27:54 +0200
committerFelipe Balbi <balbi@ti.com>2011-02-17 21:11:45 +0200
commit75a14b1434a0ca409bcc8ab9b6b2e680796c487e (patch)
tree18ceaa8e3ea4e442c4b087e5572dcc0f8be76120 /drivers/usb/musb
parent04b31c776f34d127b422da92899272a0b8cda21d (diff)
downloadop-kernel-dev-75a14b1434a0ca409bcc8ab9b6b2e680796c487e.zip
op-kernel-dev-75a14b1434a0ca409bcc8ab9b6b2e680796c487e.tar.gz
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>
Diffstat (limited to 'drivers/usb/musb')
-rw-r--r--drivers/usb/musb/musb_core.c25
1 files changed, 0 insertions, 25 deletions
diff --git a/drivers/usb/musb/musb_core.c b/drivers/usb/musb/musb_core.c
index 54a8bd1..bc29655 100644
--- a/drivers/usb/musb/musb_core.c
+++ b/drivers/usb/musb/musb_core.c
@@ -1949,31 +1949,6 @@ musb_init_controller(struct device *dev, int nIrq, void __iomem *ctrl)
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 */
musb = allocate_instance(dev, plat->config, ctrl);
if (!musb) {
OpenPOWER on IntegriCloud