From patchwork Tue Aug 23 19:52:47 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Randy Dunlap X-Patchwork-Id: 1089532 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter2.kernel.org (8.14.4/8.14.4) with ESMTP id p7NJrSet016956 for ; Tue, 23 Aug 2011 19:53:29 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755953Ab1HWTxA (ORCPT ); Tue, 23 Aug 2011 15:53:00 -0400 Received: from oproxy1-pub.bluehost.com ([66.147.249.253]:46326 "HELO oproxy1-pub.bluehost.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1756035Ab1HWTwt (ORCPT ); Tue, 23 Aug 2011 15:52:49 -0400 Received: (qmail 25613 invoked by uid 0); 23 Aug 2011 19:52:48 -0000 Received: from unknown (HELO box742.bluehost.com) (66.147.244.242) by oproxy1.bluehost.com with SMTP; 23 Aug 2011 19:52:48 -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=+ODHgi5srruy7quqaaa8FEe9wbFkpB4ZtBysUj+fh3c=; b=Jc0rHNBGsW02ybYqwMsUD8Okdu9MFhWiSVyKMAzP6XfF8E+XtZSr4U6OSM2jAuZLBUqH+K2q7Ahu2mE8GZCnp/f8TSn8Zifdcq1px1pXU+PkgRzngYM6GBUxkAUeuWws; Received: from static-50-53-38-135.bvtn.or.frontiernet.net ([50.53.38.135] helo=chimera.site) by box742.bluehost.com with esmtpa (Exim 4.76) (envelope-from ) id 1Qvx1k-0006YB-G7; Tue, 23 Aug 2011 13:52:48 -0600 Date: Tue, 23 Aug 2011 12:52:47 -0700 From: Randy Dunlap To: balbi@ti.com Cc: Stephen Rothwell , akpm , gregkh@suse.de, linux-next@vger.kernel.org, LKML , linux-omap@vger.kernel.org Subject: [PATCH -next v2] usb: fix dwc3 build when USB_GADGET_DWC3 is not enabled Message-Id: <20110823125247.fbbf9636.rdunlap@xenotime.net> In-Reply-To: <20110823185235.GA11299@legolas.emea.dhcp.ti.com> References: <20110823160432.d24f8cad00951286bc18461e@canb.auug.org.au> <20110823110702.f5ea377c.rdunlap@xenotime.net> <20110823185235.GA11299@legolas.emea.dhcp.ti.com> 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 (demeter2.kernel.org [140.211.167.43]); Tue, 23 Aug 2011 19:53:29 +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 Acked-by: Felipe Balbi --- drivers/usb/dwc3/gadget.h | 5 +++++ 1 file changed, 5 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/gadget.h +++ linux-next-20110823/drivers/usb/dwc3/gadget.h @@ -202,6 +202,11 @@ void dwc3_gadget_exit(struct dwc3 *dwc); #else static inline int dwc3_gadget_init(struct dwc3 *dwc) { return 0; } static inline void dwc3_gadget_exit(struct dwc3 *dwc) { } +static inline int dwc3_send_gadget_ep_cmd(struct dwc3 *dwc, unsigned ep, + unsigned cmd, struct dwc3_gadget_ep_cmd_params *params) +{ + return 0; +} #endif void dwc3_gadget_giveback(struct dwc3_ep *dep, struct dwc3_request *req,