From patchwork Mon Aug 18 14:28:33 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kishon Vijay Abraham I X-Patchwork-Id: 35527 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pd0-f198.google.com (mail-pd0-f198.google.com [209.85.192.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id A4F3E20676 for ; Mon, 18 Aug 2014 15:13:30 +0000 (UTC) Received: by mail-pd0-f198.google.com with SMTP id fp1sf42383886pdb.9 for ; Mon, 18 Aug 2014 08:13:25 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:date:message-id:in-reply-to :references:mime-version:subject:precedence:list-id:list-unsubscribe :list-archive:list-post:list-help:list-subscribe:sender:errors-to :x-original-sender:x-original-authentication-results:mailing-list :content-type:content-transfer-encoding; bh=/wAZQeqNW5eFAKstkFA78SF57/uDfEHV0QZSqc9f6B0=; b=M+hGGIKtqNVBlRLzygUFEsl0xk5UIw6kETKzXEGBOY3B3VxCoBZw+/Ra7DywZr2vCm VfYhhH+nYyHU7ptWWogmByiHa4pSSrn8l5zxntveckqdo+dPF+Ci25MgJ2FZ8FMT/30E RZKcbgBJNaH/rVU+IGBvxh3g0HnDm3FD1f51n2CVKsy/CnO0lrcw0CeLYfoe7h85cAxX EazgUSnSIlssWNxWr7tCc3dotnccB+xEvhyPTMdEi6D7DRCoPqR62kn78gwX9KHqDphK AKedrNMFy+6WHbGG29kW7oBfHV8cXysZuEeEA5NRAIClBmJG8pPMw8Eoz77AWs/4oyEX MDdA== X-Gm-Message-State: ALoCoQmLZkPSZRSzg1CCj04p78xrONmJx8FqEm7sJ6OHS49YEiY9tpzbi7wFYum5W4HkNEg9aU0L X-Received: by 10.66.192.106 with SMTP id hf10mr9891771pac.18.1408374803702; Mon, 18 Aug 2014 08:13:23 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.21.197 with SMTP id 63ls2512819qgl.58.gmail; Mon, 18 Aug 2014 08:13:23 -0700 (PDT) X-Received: by 10.52.240.135 with SMTP id wa7mr405111vdc.82.1408374803518; Mon, 18 Aug 2014 08:13:23 -0700 (PDT) Received: from mail-vc0-f173.google.com (mail-vc0-f173.google.com [209.85.220.173]) by mx.google.com with ESMTPS id l4si5582220vew.19.2014.08.18.08.13.23 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 18 Aug 2014 08:13:23 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.173 as permitted sender) client-ip=209.85.220.173; Received: by mail-vc0-f173.google.com with SMTP id hy10so5923948vcb.32 for ; Mon, 18 Aug 2014 08:13:23 -0700 (PDT) X-Received: by 10.221.47.9 with SMTP id uq9mr925618vcb.48.1408374803447; Mon, 18 Aug 2014 08:13:23 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.221.37.5 with SMTP id tc5csp160572vcb; Mon, 18 Aug 2014 08:13:22 -0700 (PDT) X-Received: by 10.180.97.129 with SMTP id ea1mr42739188wib.29.1408374802492; Mon, 18 Aug 2014 08:13:22 -0700 (PDT) Received: from theia.denx.de (theia.denx.de. [85.214.87.163]) by mx.google.com with ESMTP id l12si4093117wie.29.2014.08.18.08.13.22 for ; Mon, 18 Aug 2014 08:13:22 -0700 (PDT) Received-SPF: none (google.com: u-boot-bounces@lists.denx.de does not designate permitted sender hosts) client-ip=85.214.87.163; Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 8EFBC4B612; Mon, 18 Aug 2014 17:10:59 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 1Wflognd4jy4; Mon, 18 Aug 2014 17:10:59 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id D47084B661; Mon, 18 Aug 2014 17:08:05 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id A24314A03B for ; Mon, 18 Aug 2014 16:29:58 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 4DoPAiRaA2sh for ; Mon, 18 Aug 2014 16:29:48 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from comal.ext.ti.com (comal.ext.ti.com [198.47.26.152]) by theia.denx.de (Postfix) with ESMTPS id 12AA04B150 for ; Mon, 18 Aug 2014 16:29:10 +0200 (CEST) Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by comal.ext.ti.com (8.13.7/8.13.7) with ESMTP id s7IET9tB021642 for ; Mon, 18 Aug 2014 09:29:09 -0500 Received: from DFLE73.ent.ti.com (dfle73.ent.ti.com [128.247.5.110]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id s7IET9ae006653 for ; Mon, 18 Aug 2014 09:29:09 -0500 Received: from dlep32.itg.ti.com (157.170.170.100) by DFLE73.ent.ti.com (128.247.5.110) with Microsoft SMTP Server id 14.3.174.1; Mon, 18 Aug 2014 09:29:08 -0500 Received: from a0393678lt.apr.dhcp.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep32.itg.ti.com (8.14.3/8.13.8) with ESMTP id s7IESbMC003614; Mon, 18 Aug 2014 09:29:06 -0500 From: Kishon Vijay Abraham I To: , , , , , , Date: Mon, 18 Aug 2014 19:58:33 +0530 Message-ID: <1408372115-4570-12-git-send-email-kishon@ti.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1408372115-4570-1-git-send-email-kishon@ti.com> References: <1408372115-4570-1-git-send-email-kishon@ti.com> MIME-Version: 1.0 X-Mailman-Approved-At: Mon, 18 Aug 2014 17:07:53 +0200 Subject: [U-Boot] [UBOOT RFC PATCH 11/13] commom: usb: implement "__weak" functions to make compiler happy X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: kishon@ti.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.173 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 Implemented __weak functions for board_usb_cleanup, board_usb_gadget_handle_interrupts and usb_gadget_handle_interrupts to get of compiler errors in platforms that haven't implemented these functions. Signed-off-by: Kishon Vijay Abraham I --- common/usb.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/common/usb.c b/common/usb.c index 60daa10..892bf7c 100644 --- a/common/usb.c +++ b/common/usb.c @@ -1072,4 +1072,22 @@ int board_usb_init(int index, enum usb_init_type init) { return 0; } + +__weak +int board_usb_cleanup(int index, enum usb_init_type init) +{ + return 0; +} + +__weak +int board_usb_gadget_handle_interrupts(int index) +{ + return 0; +} + +__weak +int usb_gadget_handle_interrupts(void) +{ + return 0; +} /* EOF */