From patchwork Wed Feb 16 08:05:43 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Felipe Balbi X-Patchwork-Id: 566321 X-Patchwork-Delegate: me@felipebalbi.com Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p1G85EOc027265 for ; Wed, 16 Feb 2011 08:05:49 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755889Ab1BPIFs (ORCPT ); Wed, 16 Feb 2011 03:05:48 -0500 Received: from na3sys009aog114.obsmtp.com ([74.125.149.211]:54733 "EHLO na3sys009aog114.obsmtp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753078Ab1BPIFr (ORCPT ); Wed, 16 Feb 2011 03:05:47 -0500 Received: from source ([209.85.214.42]) (using TLSv1) by na3sys009aob114.postini.com ([74.125.148.12]) with SMTP ID DSNKTVuFWpzF4sJ6XSU5IIKk9FvZwp0mKYSc@postini.com; Wed, 16 Feb 2011 00:05:47 PST Received: by mail-bw0-f42.google.com with SMTP id 13so1970834bwz.15 for ; Wed, 16 Feb 2011 00:05:46 -0800 (PST) Received: by 10.204.53.148 with SMTP id m20mr212993bkg.150.1297843546693; Wed, 16 Feb 2011 00:05:46 -0800 (PST) Received: from localhost (cs181221087.pp.htv.fi [82.181.221.87]) by mx.google.com with ESMTPS id 12sm3233557bki.7.2011.02.16.00.05.45 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 16 Feb 2011 00:05:45 -0800 (PST) Date: Wed, 16 Feb 2011 10:05:43 +0200 From: Felipe Balbi To: Felipe Balbi Cc: Tomi Valkeinen , "linux-omap@vger.kernel.org" Subject: Re: OMAP3 & USB NFS root Message-ID: <20110216080543.GD2497@legolas.emea.dhcp.ti.com> Reply-To: balbi@ti.com References: <1297691206.2951.8.camel@deskari> <20110214134842.GH2549@legolas.emea.dhcp.ti.com> <1297692039.2951.10.camel@deskari> <20110214140216.GJ2549@legolas.emea.dhcp.ti.com> <1297838666.2031.8.camel@deskari> <20110216080227.GB2497@legolas.emea.dhcp.ti.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20110216080227.GB2497@legolas.emea.dhcp.ti.com> User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Wed, 16 Feb 2011 08:05:49 +0000 (UTC) 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) {