Message ID | 1459847749-5336-2-git-send-email-yoshihiro.shimoda.uh@renesas.com (mailing list archive) |
---|---|
State | Superseded |
Delegated to: | Geert Uytterhoeven |
Headers | show
Return-Path: <linux-renesas-soc-owner@kernel.org> X-Original-To: patchwork-linux-renesas-soc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id ED3DA9F36E for <patchwork-linux-renesas-soc@patchwork.kernel.org>; Tue, 5 Apr 2016 09:16:09 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5D36C20364 for <patchwork-linux-renesas-soc@patchwork.kernel.org>; Tue, 5 Apr 2016 09:16:09 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A722C2035D for <patchwork-linux-renesas-soc@patchwork.kernel.org>; Tue, 5 Apr 2016 09:16:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757808AbcDEJQG (ORCPT <rfc822;patchwork-linux-renesas-soc@patchwork.kernel.org>); Tue, 5 Apr 2016 05:16:06 -0400 Received: from relmlor4.renesas.com ([210.160.252.174]:11325 "EHLO relmlie3.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1757694AbcDEJQE (ORCPT <rfc822;linux-renesas-soc@vger.kernel.org>); Tue, 5 Apr 2016 05:16:04 -0400 Received: from unknown (HELO relmlir1.idc.renesas.com) ([10.200.68.151]) by relmlie3.idc.renesas.com with ESMTP; 05 Apr 2016 18:16:02 +0900 Received: from relmlac1.idc.renesas.com (relmlac1.idc.renesas.com [10.200.69.21]) by relmlir1.idc.renesas.com (Postfix) with ESMTP id 29AFE51F73; Tue, 5 Apr 2016 18:16:02 +0900 (JST) Received: by relmlac1.idc.renesas.com (Postfix, from userid 0) id 25A588002E; Tue, 5 Apr 2016 18:16:02 +0900 (JST) Received: from relmlac1.idc.renesas.com (localhost [127.0.0.1]) by relmlac1.idc.renesas.com (Postfix) with ESMTP id 1E84A8002D; Tue, 5 Apr 2016 18:16:02 +0900 (JST) Received: from relmlii1.idc.renesas.com [10.200.68.65] by relmlac1.idc.renesas.com with ESMTP id UAA12618; Tue, 5 Apr 2016 18:16:02 +0900 X-IronPort-AV: E=Sophos;i="5.22,559,1449500400"; d="scan'";a="208087319" Received: from mail-pu1apc01lp0015.outbound.protection.outlook.com (HELO APC01-PU1-obe.outbound.protection.outlook.com) ([65.55.88.15]) by relmlii1.idc.renesas.com with ESMTP/TLS/AES256-SHA; 05 Apr 2016 18:16:00 +0900 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=renesasgroup.onmicrosoft.com; s=selector1-renesas-com; h=From:To:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=zs/Ufpy26HWZ/gEk6n4DTn+i0mUb5kR161c02fn5x2Y=; b=Uq2cCwMg641wqSCr6XVOcyMuUfuDGQ81Pr7zPFrECZ8RNdbZNa4R0k91KGxFeQtTZSmayXQVwQa2de2Zv+KZugxvKb4n2qXaRbmxfYIymsVDUZfMFxpdzPMxKwra9KavVxL0uGr/zPsLcXWAUV1vkvj6LnVsqkWf8DNaQf2pMRM= Authentication-Results: kernel.org; dkim=none (message not signed) header.d=none; kernel.org; dmarc=none action=none header.from=renesas.com; Received: from localhost (211.11.155.144) by SG2PR06MB0920.apcprd06.prod.outlook.com (10.162.204.153) with Microsoft SMTP Server (TLS) id 15.1.447.15; Tue, 5 Apr 2016 09:15:59 +0000 From: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com> To: <balbi@kernel.org> CC: <gregkh@linuxfoundation.org>, <linux-usb@vger.kernel.org>, <linux-renesas-soc@vger.kernel.org>, Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>, <stable@vger.kernel.org> Subject: [PATCH/RFC 1/5] usb: gadget: udc: core: Fix argument of dev_err() in usb_gadget_map_request() Date: Tue, 5 Apr 2016 18:15:45 +0900 Message-ID: <1459847749-5336-2-git-send-email-yoshihiro.shimoda.uh@renesas.com> X-Mailer: git-send-email 1.9.4.msysgit.1 In-Reply-To: <1459847749-5336-1-git-send-email-yoshihiro.shimoda.uh@renesas.com> References: <1459847749-5336-1-git-send-email-yoshihiro.shimoda.uh@renesas.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [211.11.155.144] X-ClientProxiedBy: TY1PR01CA0048.jpnprd01.prod.outlook.com (10.164.162.158) To SG2PR06MB0920.apcprd06.prod.outlook.com (10.162.204.153) X-MS-Office365-Filtering-Correlation-Id: 6ee40c6b-19d9-48bf-08b9-08d35d32e773 X-Microsoft-Exchange-Diagnostics: 1; SG2PR06MB0920; 2:ZpFn5W5vtyg+pRe7a7jdcZ4tU/lHRReqxhfMbCqzMaAzGxTrt5ZuMu9zamQ9S0Olyu9Q01kPOnwGExbarPXBEBJQfkIcy1LJS7zUTxxYeQQs8Eds5BOBeYJ8mi5aSZfNYu0j8W3WN6FBZUZjkNq2vp480SiYzRKjDIFYBpiOlpawU9AE6JrIuwT5iA5q0D+u; 3:uNnDbKyMnIAcHCB/W8xdkHc6mXV2qLnOvfg2rZPFq+chvaTu9KGvQnGITq/pnyXAgbVLnJpoJCxW9j7aJLD4H5cATGZ2SHyC1+NObnyLdMUyG1nW3beUInfp1GYJkb1q; 25:7zofhfuIQBUh1BzxRkYp2jRbcFsqUA023aOXmQcXjxXo3W0Dn51YQTL3i+WLHg4R5HCtxxoRRWVuVgUgFaIaWqY4crwMMs4c4mMydedm9EwakBc650Kz8BU/KY3deWZtUtdMDd41NVthXel9x4sUvoErwd29YrCYkD6OhayTOLgIpJenRUOqc8CLFjxPUbF1dDCKdOyLzCYqPmF5YPDkhP3mBE/rKGm1K8Lf3lVbuuv0cfKJoTB+EAm5w37fd866ZyrPVxIXR1NXBZ3RuN0F9fowJW8wT8HdU40RO2HDlY2TkaOctP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G2PR06MB0920F58111740F196592B687B89E0@SG2PR06MB0920.apcprd06.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(8121501046)(5005006)(10201501046)(3002001); SRVR:SG2PR06MB0920; BCL:0; PCL:0; RULEID:; SRVR:SG2PR06MB0920; X-Forefront-PRVS: 0903DD1D85 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(4630300001)(6069001)(6009001)(2351001)(76506005)(6116002)(3846002)(77096005)(42186005)(78352003)(33646002)(229853001)(66066001)(5004730100002)(586003)(19580395003)(5008740100001)(36756003)(50466002)(48376002)(42382002)(47776003)(76176999)(50986999)(5003940100001)(19580405001)(110136002)(81166005)(50226001)(189998001)(4326007)(2906002)(2950100001)(1096002)(92566002); DIR:OUT; SFP:1102; SCL:1; SRVR:SG2PR06MB0920; H:localhost; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; SG2PR06MB0920; 23:8hSrSwHrZCYdIECL5Oxs/lk0PZwEcoJd8QVDsjQ+mYwWJ3NWugVsqDSOqFohlSu6CMaA/3kRMYVrIYDn1HpdfJmEVxcBWWfMAI4WGDnYOvk3wsq5PBCjoP4iV/+UBhL72B9F+iDvmac1WuE6g1Lg9KG0042o7Gb1LnAYYiYCYc+zVN5iaWk2rwIO2CJxpz68Ep8VUQDrDnJ5XT4JPX9jH1gSdXgNglzhmmA1xG6gm/Z8FAi/iA0zXgIcHAWHk3SkS+mrd11aq7Anlhhk38Tk6wsVcU/o/kk9l1ChwmbxECfqH/Tzvzew/zMvr4MDt4WNZTljRjpKhLEupaotZGpVlqu2BOnT/8CEt4z4IffWzO37fTKNVCBOjq3tsWqIN4FN+MU1cruhf8ugrWJTwhUFy8WsbkiujdVLekkC8aLL/tAbjpOmodoyq4mY8CTShNFPlxHJCHUB/69dBM9vFGB9/LZ7L0scrio3pkSwp/EZYkIWKlQSTllREwQw760viycte4nNym30CARLXxaNiVvio7+6HrSbTRV4mnWw7yQ8UoFftEGpkpXa0QobyzGw3fKd1g6f5a9r1jHiCe/L+pbkqgB9BHk3tf01XSoydEGWcW2EiTEF8tp2Dj70dN35rYCWkQtspnXa5YgDV/KeK3dy5+kQfAzpK/X8H2nV3F5B85XY3Tni9dCKiL8fDXgyVInTVCYQurY2it6s/0qLPvYnKIsRDAHl4C87jDV/m1fUa1+4/um8S7+tyF0LTOxsoBW1PY5NWF3QHBZDdOwVPFphsR8mmkYWZBCHNt7prAhqZIuKinjXJ6PIPBpKZ8cPdhRFpZYqtXCwRxAQWx/TXEBwymkAm47k3QbO0wgxv1xufMMHROc07HAqbw/l+4XzRLTXyDXg5SUUn8IO62ejGB5qI940+d0bgSysxFmRYjruJ hdoq5HeA0MkOVcGAo5mOfFN X-Microsoft-Exchange-Diagnostics: 1; SG2PR06MB0920; 5:DhVA6sytGGqwaHoxH0ZKx+rdwQZwMW01+AR/JCXIwneqdQU/LzqC9PKrqJuJaql5a9N5I7YkpBkcnTrW2Ku7jNqRtX/RPWesmM4zAOPlofPub8nVj1HmXPLeZ0vKyIqV5LrwCXUOyhGZFOO/RiPjHw==; 24:ENehGPBQ1YTk5K9tupsD518nNRwRMTNCmE8ybcb/XWT06OLL5PWE7EfvBGq68Vn9Om8in7HPfIYUAU99g/1P4p8bsGwNzM72LRXqPkFLjYE=; 20:a3NZnCeeEEi99RAnIHWrxrKUCZHmJumSRL4I0o/G8lyvddXvyE0s+H039hhhg0q07SHfKFeg1UXZPx94e9OBrSMQXGsK7fmeREQk7b/RUWJ4hfq103UTdEZbj1eTN5r1OT5ecsfa9vTNTE9efj2zzf8kJc5+gh8GnTNG+HanBZ0= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Apr 2016 09:15:59.9052 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: SG2PR06MB0920 Sender: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: <linux-renesas-soc.vger.kernel.org> X-Mailing-List: linux-renesas-soc@vger.kernel.org X-Spam-Status: No, score=-7.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/drivers/usb/gadget/udc/udc-core.c b/drivers/usb/gadget/udc/udc-core.c index 4151597..2f9c9a0 100644 --- a/drivers/usb/gadget/udc/udc-core.c +++ b/drivers/usb/gadget/udc/udc-core.c @@ -75,7 +75,7 @@ int usb_gadget_map_request(struct usb_gadget *gadget, mapped = dma_map_sg(dev, req->sg, req->num_sgs, is_in ? DMA_TO_DEVICE : DMA_FROM_DEVICE); if (mapped == 0) { - dev_err(&gadget->dev, "failed to map SGs\n"); + dev_err(dev, "failed to map SGs\n"); return -EFAULT; }
The argument of dev_err() in usb_gadget_map_request() should be dev instead of &gadget->dev. Fixes: 7ace8fc ("usb: gadget: udc: core: Fix argument of dma_map_single for IOMMU") Cc: <stable@vger.kernel.org> # v4.3+ Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com> --- drivers/usb/gadget/udc/udc-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)