From patchwork Mon Apr 18 07:53:38 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yoshihiro Shimoda X-Patchwork-Id: 8868511 X-Patchwork-Delegate: geert@linux-m68k.org Return-Path: 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 0A51A9F441 for ; Mon, 18 Apr 2016 07:54:03 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 67889201DD for ; Mon, 18 Apr 2016 07:54:02 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id AC83320035 for ; Mon, 18 Apr 2016 07:54:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751975AbcDRHyB (ORCPT ); Mon, 18 Apr 2016 03:54:01 -0400 Received: from relmlor1.renesas.com ([210.160.252.171]:15859 "EHLO relmlie4.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751011AbcDRHx7 (ORCPT ); Mon, 18 Apr 2016 03:53:59 -0400 Received: from unknown (HELO relmlir3.idc.renesas.com) ([10.200.68.153]) by relmlie4.idc.renesas.com with ESMTP; 18 Apr 2016 16:53:57 +0900 Received: from relmlac4.idc.renesas.com (relmlac4.idc.renesas.com [10.200.69.24]) by relmlir3.idc.renesas.com (Postfix) with ESMTP id 329D54C21D; Mon, 18 Apr 2016 16:53:57 +0900 (JST) Received: by relmlac4.idc.renesas.com (Postfix, from userid 0) id 14A77480A4; Mon, 18 Apr 2016 16:53:57 +0900 (JST) Received: from relmlac4.idc.renesas.com (localhost [127.0.0.1]) by relmlac4.idc.renesas.com (Postfix) with ESMTP id 0FB79480A3; Mon, 18 Apr 2016 16:53:57 +0900 (JST) Received: from relmlii1.idc.renesas.com [10.200.68.65] by relmlac4.idc.renesas.com with ESMTP id SAJ09741; Mon, 18 Apr 2016 16:53:57 +0900 X-IronPort-AV: E=Sophos;i="5.22,559,1449500400"; d="scan'";a="209161910" Received: from mail-pu1apc01lp0020.outbound.protection.outlook.com (HELO APC01-PU1-obe.outbound.protection.outlook.com) ([65.55.88.20]) by relmlii1.idc.renesas.com with ESMTP/TLS/AES256-SHA; 18 Apr 2016 16:53:56 +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=eOiHfa1vQcYYjBXU0HtGihsNu7EoTa0QJ98DFLx0G28=; b=pw310PxLfcxNY7B7azCvDRfda/JO+9LbcQ4SYnMozTaLa5pXF7Q7VbPtjfj2fYHD0RNGpqZAGZ9tLyz2vPuORGZ+jBoLPvRGBB8pJmqmNJJeVLHEv4QIxKoGgujPFi8dOhXOPCWMDb9Ruj2Ak9HGqytatx/nAE1v1Arcab6/Uvg= 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.141) by SG2PR06MB0919.apcprd06.prod.outlook.com (10.162.204.152) with Microsoft SMTP Server (TLS) id 15.1.453.26; Mon, 18 Apr 2016 07:53:54 +0000 From: Yoshihiro Shimoda To: CC: , , , Yoshihiro Shimoda , Subject: [PATCH 1/5] usb: gadget: udc: core: Fix argument of dev_err() in usb_gadget_map_request() Date: Mon, 18 Apr 2016 16:53:38 +0900 Message-ID: <1460966022-3444-2-git-send-email-yoshihiro.shimoda.uh@renesas.com> X-Mailer: git-send-email 1.9.4.msysgit.1 In-Reply-To: <1460966022-3444-1-git-send-email-yoshihiro.shimoda.uh@renesas.com> References: <1460966022-3444-1-git-send-email-yoshihiro.shimoda.uh@renesas.com> MIME-Version: 1.0 X-Originating-IP: [211.11.155.141] X-ClientProxiedBy: OS2PR01CA0048.jpnprd01.prod.outlook.com (10.164.161.158) To SG2PR06MB0919.apcprd06.prod.outlook.com (10.162.204.152) X-MS-Office365-Filtering-Correlation-Id: 779dd964-bfcc-4e4a-a46c-08d3675e974d X-Microsoft-Exchange-Diagnostics: 1; SG2PR06MB0919; 2:Tq4HDxka29WCMSOeaL6Q3ywB9yBZNnd3XgooE3dGUUdgnC5axC5bZQF3jEtoOR1i38xy/fN1m+9qSPvUhZpYc50tcAadrPVlS7vCw7DbrCcbCEhn16WBnM5v+egDjUJhBn5XTH2NlEoNsxI7z0usj3sQdjp5t/qj+yhsatlRrD8Mm1mGJtWX4WGNi9bAhWD1; 3:T/zbyvgc/NWcJgKaO+l7Zsxf1lFHYTabImRrR4kqQJX57gj+bIFv+EjtlF2KRnOk9yhVxTPTWE5pSL4ZBIMn0h87oDMvVOBAdHEglFAgLXb7jhU/eZEDAU5mXDZgESZf X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:SG2PR06MB0919; X-Microsoft-Exchange-Diagnostics: 1; SG2PR06MB0919; 25:TEHRyDEcEk2RE2g0ae1gKzWQjPLBxaUcG0NuyiCd0ZvRVcwc/EdeSJzas19stIXxmQNM3+CcXpHGL5PSoJAOFKxhKJ7ouzZPZ5tJd59S7kdW60uDpGMKnKlc+kP5Agr50qDpexQDGY18usoeggc7ZqVAMpl2Y3so9PjnORTbmILYJTW+09TDdYZnsWp6ZMMQfSzYWaq05HAmSbeh7t0JgvNqn41PgpnfZ2vaoJS7+om7Dm2Oxyo1zZBKpmrlpngRYCAjPelOYeWMt6s4mFTmaLM3OZRFuk0dnZxJfGXnOv8Bps7tVrpOVtbqUDM6lVSX6nDEDGoDAqTJ6fxSsZRXs04k9YAaj75J9jqJ2Ad0/iX3bd0mUYfGraIT1dx2rA3cwy8VwyWSEoEOlhEsP3mOgyqsiQ3+cDvphx23KyY9nld1mVPEYADgG4rYJsCiVlIIyJGcJ1y33wGKd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ys9Cp5jh0Ww9LxwRxxiEg4HrCtGS3TDn3ebeNOsVuiYQjYfgFxl8kSIetoF+76SZW2JFfyJ/Foa7U2LpR+9BVb/C3Ly6xnW1jrZ7p95wgWSrTiDjcVAcqjjpLFNagLkEQT4OQ5LY++f9s8erDQDeaA== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(8121501046)(5005006)(10201501046)(3002001)(6055026); SRVR:SG2PR06MB0919; BCL:0; PCL:0; RULEID:; SRVR:SG2PR06MB0919; X-Forefront-PRVS: 0916FC3A18 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(6069001)(6009001)(19580405001)(33646002)(229853001)(5008740100001)(19580395003)(50986999)(76176999)(36756003)(1096002)(76506005)(586003)(78352003)(6116002)(2906002)(3846002)(4326007)(2351001)(5004730100002)(42382002)(50226001)(50466002)(5003940100001)(81166005)(2950100001)(77096005)(189998001)(48376002)(92566002)(42186005)(47776003)(66066001)(110136002); DIR:OUT; SFP:1102; SCL:1; SRVR:SG2PR06MB0919; H:localhost; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; SG2PR06MB0919; 23:ib3aFtyB7jBlOAa83ngXN2u4iyZaoDN13auuaGrK+L61lrJB55xOWlHqGvZxngPzWo/9tvQQVYPnDfRFGQoiCCuHvE5Ug6ikH7ycPopwCQUmCiXiF3HUYXzYmouIzgdk3MPA64ONLLYeH4wNwTwQuhByEAtSg7fAAq2viR7OaFu2C2An9/pXSDxPWcrgkhHmnKR09qEj9ym4QCzktUylzov6U+zQW5CDHVw52druWg70IhAyo35T2RyyNoWm1O5YFPrm5iLU3R0l3YSuY051XicXAbJ++gsz4NCU9D4XCCc4YlXc6dcL5hoZWz9H/4T7S9gw2MXEHcx+LZO8vpFjaxTT5RdH9vVxE7CmUr8NT0X9RuK12HMpG+PjUspf1nkEYHSY1jQh58d1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as.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Apr 2016 07:53:54.9125 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: SG2PR06MB0919 Sender: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: 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 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: # v4.3+ Signed-off-by: Yoshihiro Shimoda --- drivers/usb/gadget/udc/udc-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/gadget/udc/udc-core.c b/drivers/usb/gadget/udc/udc-core.c index e4e70e1..c6e7646 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; }