From patchwork Tue Aug 23 18:07:02 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Randy Dunlap X-Patchwork-Id: 1089312 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.4) with ESMTP id p7NI77Qh018860 for ; Tue, 23 Aug 2011 18:07:07 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755186Ab1HWSHF (ORCPT ); Tue, 23 Aug 2011 14:07:05 -0400 Received: from oproxy6-pub.bluehost.com ([67.222.54.6]:42452 "HELO oproxy6-pub.bluehost.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1754835Ab1HWSHE (ORCPT ); Tue, 23 Aug 2011 14:07:04 -0400 Received: (qmail 1908 invoked by uid 0); 23 Aug 2011 18:07:03 -0000 Received: from unknown (HELO box742.bluehost.com) (66.147.244.242) by cpoproxy3.bluehost.com with SMTP; 23 Aug 2011 18:07:03 -0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=xenotime.net; s=default; h=Content-Transfer-Encoding:Content-Type:Mime-Version:References:In-Reply-To:Message-Id:Subject:Cc:To:From:Date; bh=UxRCnK7xXs04OOLjJiSBmUB+ZALPy6gELdTZKagFVdw=; b=iqdVjC53H69EC8QQK38ZLzIzhssm5MdKrxAuEULHKMf1RiNXKh1I43N8EH2k6y20SMqFbpIICO13s+SxgW+3HgQDQPXzZo4ZeAKjyZHMtn73vaBifOwk/GuBuKc+S8iD; Received: from static-50-53-38-135.bvtn.or.frontiernet.net ([50.53.38.135] helo=chimera.site) by box742.bluehost.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.76) (envelope-from ) id 1QvvNP-0006Wh-Gg; Tue, 23 Aug 2011 12:07:03 -0600 Date: Tue, 23 Aug 2011 11:07:02 -0700 From: Randy Dunlap To: Stephen Rothwell , akpm , gregkh@suse.de Cc: linux-next@vger.kernel.org, LKML , Felipe Balbi , linux-omap@vger.kernel.org Subject: [PATCH -next] usb: fix dwc3 build when USB_GADGET_DWC3 is not enabled Message-Id: <20110823110702.f5ea377c.rdunlap@xenotime.net> In-Reply-To: <20110823160432.d24f8cad00951286bc18461e@canb.auug.org.au> References: <20110823160432.d24f8cad00951286bc18461e@canb.auug.org.au> Organization: YPO4 X-Mailer: Sylpheed 2.7.1 (GTK+ 2.16.6; x86_64-unknown-linux-gnu) Mime-Version: 1.0 X-Identified-User: {1807:box742.bluehost.com:xenotime:xenotime.net} {sentby:smtp auth 50.53.38.135 authed with rdunlap@xenotime.net} 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]); Tue, 23 Aug 2011 18:07:27 +0000 (UTC) From: Randy Dunlap Fix build error when CONFIG_USB_GADGET_DWC3 is not enabled: ERROR: "dwc3_send_gadget_ep_cmd" [drivers/usb/dwc3/dwc3.ko] undefined! Signed-off-by: Randy Dunlap --- drivers/usb/dwc3/debugfs.c | 4 ++++ 1 file changed, 4 insertions(+) -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html --- linux-next-20110823.orig/drivers/usb/dwc3/debugfs.c +++ linux-next-20110823/drivers/usb/dwc3/debugfs.c @@ -437,7 +437,9 @@ static int dwc3_testmode_open(struct ino struct dwc3_gadget_ep_cmd_params par0; struct dwc3_gadget_ep_cmd_params par1; struct dwc3_trb trb; +#ifdef CONFIG_USB_GADGET_DWC3 int ret; +#endif u8 *buf0; u8 *buf1; @@ -478,8 +480,10 @@ static int dwc3_testmode_open(struct ino dwc3_send_testmode_cmd(dwc, 1); +#ifdef CONFIG_USB_GADGET_DWC3 ret = dwc3_send_gadget_ep_cmd(dwc, 0, DWC3_DEPCMD_STARTTRANSFER, &par0); ret = dwc3_send_gadget_ep_cmd(dwc, 1, DWC3_DEPCMD_STARTTRANSFER, &par1); +#endif dwc3_send_testmode_cmd(dwc, 0); return -EBUSY;