From patchwork Fri Oct 17 17:16:53 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Felipe Balbi X-Patchwork-Id: 38967 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f197.google.com (mail-lb0-f197.google.com [209.85.217.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 248D2202DB for ; Fri, 17 Oct 2014 17:19:30 +0000 (UTC) Received: by mail-lb0-f197.google.com with SMTP id p9sf726810lbv.0 for ; Fri, 17 Oct 2014 10:19:29 -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:cc:subject:date:message-id :in-reply-to:references:mime-version:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe:content-type; bh=ZJrfopr/Ysbm9X2wpRuuo7SGb3lEV/JMkv+5dpudnT4=; b=KUMlSA9js7JGXwxMpRMg/br6GdzZQ6m8Iz7LdOB16oeYEG61xbedL8/o8XUvAlCV/b dJFi/ze52Jtnv1zw3eXY3rQbg89taUBcP4vxfdlkhAKHfr79hUpnp/7ZGTqJxsB4H97U 8yfjjne2xki3kvXWA0NTm1X3iqtLF0eJcBFDG4LLMMqQ/FYtHXp95oWGcfkZhKJqKaX0 YbeFLLeZv4F5qL3KBkWJDEYN+g1sJZ0s4lNqc6CtaFALt4x8gxOZXOPwOPIckWnN1SNh DZjAZgr4sUYFCQe7hE76ASQQ+al9OimB/yMJ16UBbEE7SjooOv4zqTkJ08W0Z3O0CF+1 IqNQ== X-Gm-Message-State: ALoCoQnmz5i1a8JJirtuzKvZolZg2YTATiX2i9cyxvIzttkmGjuUa8vysCOmrJ6UvoOUCYiH3nsU X-Received: by 10.194.206.10 with SMTP id lk10mr1583900wjc.3.1413566368981; Fri, 17 Oct 2014 10:19:28 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.116.8 with SMTP id js8ls288845lab.69.gmail; Fri, 17 Oct 2014 10:19:28 -0700 (PDT) X-Received: by 10.112.198.226 with SMTP id jf2mr4736011lbc.84.1413566368799; Fri, 17 Oct 2014 10:19:28 -0700 (PDT) Received: from mail-la0-f46.google.com (mail-la0-f46.google.com. [209.85.215.46]) by mx.google.com with ESMTPS id x2si2950913lae.118.2014.10.17.10.19.28 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 17 Oct 2014 10:19:28 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.46 as permitted sender) client-ip=209.85.215.46; Received: by mail-la0-f46.google.com with SMTP id gi9so1075641lab.19 for ; Fri, 17 Oct 2014 10:19:28 -0700 (PDT) X-Received: by 10.112.189.10 with SMTP id ge10mr10137519lbc.23.1413566368722; Fri, 17 Oct 2014 10:19:28 -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.84.229 with SMTP id c5csp268311lbz; Fri, 17 Oct 2014 10:19:27 -0700 (PDT) X-Received: by 10.70.123.228 with SMTP id md4mr3097993pdb.159.1413566358916; Fri, 17 Oct 2014 10:19:18 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id tf2si376641pac.129.2014.10.17.10.19.18 for ; Fri, 17 Oct 2014 10:19:18 -0700 (PDT) Received-SPF: none (google.com: linux-usb-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753818AbaJQRTP (ORCPT + 3 others); Fri, 17 Oct 2014 13:19:15 -0400 Received: from bear.ext.ti.com ([192.94.94.41]:44389 "EHLO bear.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753645AbaJQRSV (ORCPT ); Fri, 17 Oct 2014 13:18:21 -0400 Received: from dflxv15.itg.ti.com ([128.247.5.124]) by bear.ext.ti.com (8.13.7/8.13.7) with ESMTP id s9HHIDl5008072; Fri, 17 Oct 2014 12:18:13 -0500 Received: from DFLE73.ent.ti.com (dfle73.ent.ti.com [128.247.5.110]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id s9HHIDda029767; Fri, 17 Oct 2014 12:18:13 -0500 Received: from dlep33.itg.ti.com (157.170.170.75) by DFLE73.ent.ti.com (128.247.5.110) with Microsoft SMTP Server id 14.3.174.1; Fri, 17 Oct 2014 12:18:13 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep33.itg.ti.com (8.14.3/8.13.8) with ESMTP id s9HHIC4w030447; Fri, 17 Oct 2014 12:18:13 -0500 From: Felipe Balbi To: Linux USB Mailing List CC: Greg KH , , Paul Zimmerman , , , , , , , Felipe Balbi Subject: [PATCH 46/67] usb: gadget: udc: fsl_qe: do not rely on 'driver' argument Date: Fri, 17 Oct 2014 12:16:53 -0500 Message-ID: <1413566234-13537-47-git-send-email-balbi@ti.com> X-Mailer: git-send-email 2.1.0.GIT In-Reply-To: <1413566234-13537-1-git-send-email-balbi@ti.com> References: <1413566234-13537-1-git-send-email-balbi@ti.com> MIME-Version: 1.0 Sender: linux-usb-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-usb@vger.kernel.org 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.215.46 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 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , future patches will remove the extra 'driver' argument to ->udc_stop(), in order to do that, we must make sure that our UDC does not rely on it first. Signed-off-by: Felipe Balbi --- drivers/usb/gadget/udc/fsl_qe_udc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/usb/gadget/udc/fsl_qe_udc.c b/drivers/usb/gadget/udc/fsl_qe_udc.c index 6601b0f..be78857 100644 --- a/drivers/usb/gadget/udc/fsl_qe_udc.c +++ b/drivers/usb/gadget/udc/fsl_qe_udc.c @@ -2334,10 +2334,10 @@ static int fsl_qe_stop(struct usb_gadget *gadget, nuke(loop_ep, -ESHUTDOWN); spin_unlock_irqrestore(&udc->lock, flags); + dev_info(udc->dev, "unregistered gadget driver '%s'\r\n", + udc->driver->driver.name); udc->driver = NULL; - dev_info(udc->dev, "unregistered gadget driver '%s'\r\n", - driver->driver.name); return 0; }