From patchwork Thu Oct 1 19:22:18 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Felipe Balbi X-Patchwork-Id: 54401 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f69.google.com (mail-la0-f69.google.com [209.85.215.69]) by patches.linaro.org (Postfix) with ESMTPS id 64C4B2301B for ; Thu, 1 Oct 2015 19:22:42 +0000 (UTC) Received: by labjk1 with SMTP id jk1sf41182969lab.0 for ; Thu, 01 Oct 2015 12:22:40 -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:cc:subject:precedence:list-id :list-unsubscribe:list-archive:list-post:list-help:list-subscribe :content-type:content-transfer-encoding:errors-to:sender :x-original-sender:x-original-authentication-results:mailing-list; bh=T/YQfXbajqiGTUDg0W58tbOTL6MA6QrzVql3YqoMir8=; b=F160KfjUkveWjntQFO6FyZn3FCgdhyY6tTQepnOkpkbplQ45oD4kJ2lgp47pfWPccB r+gxmbxDIHDI8dzXVDj5aUnOPEm/VmfmIen6ceOo76Wt99YmkbAmg1rrHgHWeYTAa4vL RLP/+mexXBPVZttYXmG3UZui+uV5dVg4eUwDCkcw7bXJXICrSyh3gpHWijo/AjuRRSch G7zTG3NK/08/8y86gTrTP3nD/bGeDv0tKthHEsKP6i9J6lZGcR3HVHvF0OoDRMdv60un ehvXVRzjkcH7J1gysYWjJIswT04Nx9aFe4zNgn+1qBWCNNvjcOJtlW8bhUwrBKx7g68Z 0E4Q== X-Gm-Message-State: ALoCoQkM6ZcNv0Yu7WK6NTal3TC9/WaGnanREUlZD+7C6VikqpMacR2aBiN+lsEWnwaC4aWpAzfj X-Received: by 10.181.29.103 with SMTP id jv7mr112717wid.0.1443727360357; Thu, 01 Oct 2015 12:22:40 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.25.22.31 with SMTP id m31ls141672lfi.21.gmail; Thu, 01 Oct 2015 12:22:40 -0700 (PDT) X-Received: by 10.25.42.148 with SMTP id q142mr2398319lfq.67.1443727360197; Thu, 01 Oct 2015 12:22:40 -0700 (PDT) Received: from mail-lb0-f180.google.com (mail-lb0-f180.google.com. [209.85.217.180]) by mx.google.com with ESMTPS id n136si3681702lfb.138.2015.10.01.12.22.39 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 01 Oct 2015 12:22:39 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.180 as permitted sender) client-ip=209.85.217.180; Received: by lbbmp1 with SMTP id mp1so15165348lbb.1 for ; Thu, 01 Oct 2015 12:22:39 -0700 (PDT) X-Received: by 10.25.20.80 with SMTP id k77mr2410636lfi.117.1443727359831; Thu, 01 Oct 2015 12:22:39 -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.112.59.35 with SMTP id w3csp790443lbq; Thu, 1 Oct 2015 12:22:39 -0700 (PDT) X-Received: by 10.194.239.104 with SMTP id vr8mr12216226wjc.72.1443727359247; Thu, 01 Oct 2015 12:22:39 -0700 (PDT) Received: from theia.denx.de (theia.denx.de. [85.214.87.163]) by mx.google.com with ESMTP id n7si9058385wjb.50.2015.10.01.12.22.38; Thu, 01 Oct 2015 12:22:39 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.87.163 as permitted sender) client-ip=85.214.87.163; Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 2F0DF4B86B; Thu, 1 Oct 2015 21:22:36 +0200 (CEST) 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 BP0KPllcBIv4; Thu, 1 Oct 2015 21:22:36 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 71BC74B879; Thu, 1 Oct 2015 21:22:32 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 26A414B823 for ; Thu, 1 Oct 2015 21:22:28 +0200 (CEST) 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 V5ytgBcdW6XP for ; Thu, 1 Oct 2015 21:22:28 +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 B0F054B813 for ; Thu, 1 Oct 2015 21:22:23 +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 t91JMLpr028688; Thu, 1 Oct 2015 14:22:21 -0500 Received: from DLEE71.ent.ti.com (dlee71.ent.ti.com [157.170.170.114]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id t91JMLV9024530; Thu, 1 Oct 2015 14:22:21 -0500 Received: from dlep32.itg.ti.com (157.170.170.100) by DLEE71.ent.ti.com (157.170.170.114) with Microsoft SMTP Server id 14.3.224.2; Thu, 1 Oct 2015 14:22:21 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep32.itg.ti.com (8.14.3/8.13.8) with ESMTP id t91JMKtH004723; Thu, 1 Oct 2015 14:22:20 -0500 From: Felipe Balbi To: Tom Rini Date: Thu, 1 Oct 2015 14:22:18 -0500 Message-ID: <1443727338-29320-2-git-send-email-balbi@ti.com> X-Mailer: git-send-email 2.5.3 In-Reply-To: <1443727338-29320-1-git-send-email-balbi@ti.com> References: <1443727338-29320-1-git-send-email-balbi@ti.com> MIME-Version: 1.0 Cc: U-Boot Mailing List Subject: [U-Boot] [PATCH 2/2] usb: dwc3: fix build warnings X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: balbi@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.217.180 as permitted sender) smtp.mailfrom=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 fix the following build warnings: drivers/usb/dwc3/core.c: In function ‘dwc3_uboot_init’: drivers/usb/dwc3/core.c:625:6: warning: ‘dev’ is used uninitialized in this function [-Wuninitialized] mem = devm_kzalloc(dev, sizeof(*dwc) + DWC3_ALIGN_MASK, GFP_KERNEL); ^ drivers/usb/dwc3/dwc3-omap.c: In function ‘dwc3_omap_uboot_init’: drivers/usb/dwc3/dwc3-omap.c:380:7: warning: ‘dev’ is used uninitialized in this function [-Wuninitialized] omap = devm_kzalloc(dev, sizeof(*omap), GFP_KERNEL); Signed-off-by: Felipe Balbi --- drivers/usb/dwc3/core.c | 2 +- drivers/usb/dwc3/dwc3-omap.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/usb/dwc3/core.c b/drivers/usb/dwc3/core.c index ab3c94e51275..a95d461a7cc4 100644 --- a/drivers/usb/dwc3/core.c +++ b/drivers/usb/dwc3/core.c @@ -613,7 +613,7 @@ static void dwc3_core_exit_mode(struct dwc3 *dwc) int dwc3_uboot_init(struct dwc3_device *dwc3_dev) { struct dwc3 *dwc; - struct device *dev; + struct device *dev = NULL; u8 lpm_nyet_threshold; u8 tx_de_emphasis; u8 hird_threshold; diff --git a/drivers/usb/dwc3/dwc3-omap.c b/drivers/usb/dwc3/dwc3-omap.c index ac9a856190f0..3dcc2f484777 100644 --- a/drivers/usb/dwc3/dwc3-omap.c +++ b/drivers/usb/dwc3/dwc3-omap.c @@ -374,7 +374,7 @@ static void dwc3_omap_set_utmi_mode(struct dwc3_omap *omap, int utmi_mode) int dwc3_omap_uboot_init(struct dwc3_omap_device *omap_dev) { u32 reg; - struct device *dev; + struct device *dev = NULL; struct dwc3_omap *omap; omap = devm_kzalloc(dev, sizeof(*omap), GFP_KERNEL);