From patchwork Wed Feb 16 10:26:53 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Felipe Balbi X-Patchwork-Id: 566541 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 p1GARAqh008277 for ; Wed, 16 Feb 2011 10:27:11 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758900Ab1BPK1C (ORCPT ); Wed, 16 Feb 2011 05:27:02 -0500 Received: from na3sys009aog101.obsmtp.com ([74.125.149.67]:42705 "EHLO na3sys009aog101.obsmtp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755126Ab1BPK07 (ORCPT ); Wed, 16 Feb 2011 05:26:59 -0500 Received: from source ([209.85.214.45]) (using TLSv1) by na3sys009aob101.postini.com ([74.125.148.12]) with SMTP ID DSNKTVumcmyVVu/0/ul8z+Lsedh8+4LtLCs+@postini.com; Wed, 16 Feb 2011 02:26:59 PST Received: by bwz16 with SMTP id 16so1428843bwz.18 for ; Wed, 16 Feb 2011 02:26:57 -0800 (PST) Received: by 10.204.51.145 with SMTP id d17mr325689bkg.24.1297852016888; Wed, 16 Feb 2011 02:26:56 -0800 (PST) Received: from localhost (cs181221087.pp.htv.fi [82.181.221.87]) by mx.google.com with ESMTPS id a17sm25904bku.11.2011.02.16.02.26.55 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 16 Feb 2011 02:26:55 -0800 (PST) Date: Wed, 16 Feb 2011 12:26:53 +0200 From: Felipe Balbi To: Tomi Valkeinen Cc: "Balbi, Felipe" , "linux-omap@vger.kernel.org" Subject: Re: OMAP3 & USB NFS root Message-ID: <20110216102653.GR2497@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> <20110216080543.GD2497@legolas.emea.dhcp.ti.com> <1297849461.5431.3.camel@deskari> <20110216094918.GN2497@legolas.emea.dhcp.ti.com> <1297850436.2713.2.camel@deskari> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1297850436.2713.2.camel@deskari> 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 10:27:11 +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) {