Message ID | 1413566234-13537-46-git-send-email-balbi@ti.com |
---|---|
State | Accepted |
Commit | 96a5361aab7a89cf80cb4fe03966f55f00b0d91f |
Headers | show
Return-Path: <patchwork-forward+bncBC5M7T4HYEKRB3E6QWRAKGQEDO25UKY@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f70.google.com (mail-la0-f70.google.com [209.85.215.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 84290202DB for <linaro@patches.linaro.org>; Fri, 17 Oct 2014 17:18:37 +0000 (UTC) Received: by mail-la0-f70.google.com with SMTP id ge10sf719897lab.5 for <linaro@patches.linaro.org>; Fri, 17 Oct 2014 10:18:36 -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=jJZruLMMkT0oMNsMrgTOV1BeMnZX8HeYl/oSemTJNmk=; b=FgN03YGGUIF26nJ9ORAfntPNtYyRoCIK0EcG7xWvT68tWgQgio1XDqkfk8NIaPIutk 7zReHKBrBrDSThQHox11VWEz44vijZQYHUFYgwTpOJ9tXLcHs5hXxakyHaX5jbtVYGhV V6ouTCi+/OJkdlGAaONUuaqQx4rgLa3yAIyz2bZRLpYnUbSFogHaV46ykf9KbrRAIUlo jdsfnEA7vMk1PUiS4PGSy6M6RCj4Mf9Z9t7Hzx1AMkFd7Xo9t/W2M77QxJUdkOboVRUo 6F9Z+qsc2cuYiUncu3KXh0rZoHug0A5w6TjMAwA6yF2nqVCR4wzrkjVWnED5KP1oA1yu sTFg== X-Gm-Message-State: ALoCoQmeyd4BiJ62tXc5Au8MsDiHmgevpv++/88eI2W5KCgOPhtVmOwqTgX429D8jLr/UoMPBNrM X-Received: by 10.194.118.197 with SMTP id ko5mr1577305wjb.2.1413566316409; Fri, 17 Oct 2014 10:18:36 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.153.6.7 with SMTP id cq7ls282178lad.8.gmail; Fri, 17 Oct 2014 10:18:36 -0700 (PDT) X-Received: by 10.152.36.33 with SMTP id n1mr4535803laj.95.1413566316250; Fri, 17 Oct 2014 10:18:36 -0700 (PDT) Received: from mail-la0-f41.google.com (mail-la0-f41.google.com. [209.85.215.41]) by mx.google.com with ESMTPS id um10si2948136lbb.117.2014.10.17.10.18.36 for <patchwork-forward@linaro.org> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 17 Oct 2014 10:18:36 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.41 as permitted sender) client-ip=209.85.215.41; Received: by mail-la0-f41.google.com with SMTP id pn19so1083527lab.0 for <patchwork-forward@linaro.org>; Fri, 17 Oct 2014 10:18:36 -0700 (PDT) X-Received: by 10.152.29.8 with SMTP id f8mr10289682lah.56.1413566316171; Fri, 17 Oct 2014 10:18:36 -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 c5csp268130lbz; Fri, 17 Oct 2014 10:18:35 -0700 (PDT) X-Received: by 10.68.135.198 with SMTP id pu6mr9872924pbb.106.1413566313210; Fri, 17 Oct 2014 10:18:33 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id sn3si1594984pbc.175.2014.10.17.10.18.32 for <multiple recipients>; Fri, 17 Oct 2014 10:18:33 -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 S1753671AbaJQRSY (ORCPT <rfc822;amit.pundir@linaro.org> + 3 others); Fri, 17 Oct 2014 13:18:24 -0400 Received: from devils.ext.ti.com ([198.47.26.153]:36448 "EHLO devils.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753664AbaJQRSU (ORCPT <rfc822; linux-usb@vger.kernel.org>); Fri, 17 Oct 2014 13:18:20 -0400 Received: from dflxv15.itg.ti.com ([128.247.5.124]) by devils.ext.ti.com (8.13.7/8.13.7) with ESMTP id s9HHIC3c029044; Fri, 17 Oct 2014 12:18:12 -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 s9HHICTp029764; Fri, 17 Oct 2014 12:18:12 -0500 Received: from dflp33.itg.ti.com (10.64.6.16) by DFLE73.ent.ti.com (128.247.5.110) with Microsoft SMTP Server id 14.3.174.1; Fri, 17 Oct 2014 12:18:12 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp33.itg.ti.com (8.14.3/8.13.8) with ESMTP id s9HHIBNZ003344; Fri, 17 Oct 2014 12:18:12 -0500 From: Felipe Balbi <balbi@ti.com> To: Linux USB Mailing List <linux-usb@vger.kernel.org> CC: Greg KH <gregkh@linuxfoundation.org>, <m.szyprowski@samsung.com>, Paul Zimmerman <paul.zimmerman@synopsys.com>, <daniel@zonque.org>, <leoli@freescale.com>, <andrzej.p@samsung.com>, <r.baldyga@samsung.com>, <mina86@mina86.com>, <Peter.Chen@freescale.com>, Felipe Balbi <balbi@ti.com> Subject: [PATCH 45/67] usb: gadget: udc: dummy: do not rely on 'driver' argument Date: Fri, 17 Oct 2014 12:16:52 -0500 Message-ID: <1413566234-13537-46-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: <patchwork-forward.linaro.org> 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.41 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: <http://groups.google.com/a/linaro.org/group/patchwork-forward/post>, <mailto:patchwork-forward@linaro.org> List-Help: <http://support.google.com/a/linaro.org/bin/topic.py?topic=25838>, <mailto:patchwork-forward+help@linaro.org> List-Archive: <http://groups.google.com/a/linaro.org/group/patchwork-forward/> List-Unsubscribe: <mailto:googlegroups-manage+836684582541+unsubscribe@googlegroups.com>, <http://groups.google.com/a/linaro.org/group/patchwork-forward/subscribe> Content-Type: text/plain |
diff --git a/drivers/usb/gadget/udc/dummy_hcd.c b/drivers/usb/gadget/udc/dummy_hcd.c index 81dc595..32bdd78 100644 --- a/drivers/usb/gadget/udc/dummy_hcd.c +++ b/drivers/usb/gadget/udc/dummy_hcd.c @@ -921,9 +921,8 @@ static int dummy_udc_stop(struct usb_gadget *g, struct dummy_hcd *dum_hcd = gadget_to_dummy_hcd(g); struct dummy *dum = dum_hcd->dum; - if (driver) - dev_dbg(udc_dev(dum), "unregister gadget driver '%s'\n", - driver->driver.name); + dev_dbg(udc_dev(dum), "unregister gadget driver '%s'\n", + dum->driver->driver.name); dum->driver = NULL;
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 <balbi@ti.com> --- drivers/usb/gadget/udc/dummy_hcd.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)