From patchwork Fri Oct 17 17:16:56 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Felipe Balbi X-Patchwork-Id: 38958 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f198.google.com (mail-wi0-f198.google.com [209.85.212.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id B1F85202DB for ; Fri, 17 Oct 2014 17:19:14 +0000 (UTC) Received: by mail-wi0-f198.google.com with SMTP id hi2sf800668wib.1 for ; Fri, 17 Oct 2014 10:19:13 -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=78JjRE+qJJ8MpJwePRbxIOAkq3GF6HQeX7ZEIcwqwso=; b=YeyPrSE0AdSAAqo50+rWb43lsufUOwz2wcK4g7bzNMsbYSF2PrrCk99LxDf1V2Z9eL 45cG4mrXhddcqrZzb/7Gz5hcMNYmZZEtEyjqj2U7uI9urM+vCRjyegNJQn9JSlIMNJCz 2B4XydSuGveTGKGFAu5Nmm7aQC/EzWz8ljx12LAPyatsK5+1qvjxTUxDYvJuN4nc9Dfj Q1varAKpRRRsWi/3TWrHpEMcJJ/KTcgcbmvauSqn1wtUjutFV3dRUaqxWqJTniPlIThp pVxcIrCvr6xrhiL11q/Spwn0OfYUGdIoy3kk77FuygxyMcpUnI8IpCJ5QFOhSW2msYad 1V6Q== X-Gm-Message-State: ALoCoQkZ1zkla4WF6SirPGrC5IH5ENkObYZVoe2A+9No5XRYJvTDUKKbEVUmbfo8wl5gzTZREY+9 X-Received: by 10.152.9.37 with SMTP id w5mr12579laa.10.1413566353839; Fri, 17 Oct 2014 10:19:13 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.88.13 with SMTP id bc13ls281475lab.21.gmail; Fri, 17 Oct 2014 10:19:13 -0700 (PDT) X-Received: by 10.152.179.69 with SMTP id de5mr10279121lac.63.1413566353698; Fri, 17 Oct 2014 10:19:13 -0700 (PDT) Received: from mail-lb0-f176.google.com (mail-lb0-f176.google.com. [209.85.217.176]) by mx.google.com with ESMTPS id qe5si3054085lbb.6.2014.10.17.10.19.13 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 17 Oct 2014 10:19:13 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.176 as permitted sender) client-ip=209.85.217.176; Received: by mail-lb0-f176.google.com with SMTP id p9so1055561lbv.35 for ; Fri, 17 Oct 2014 10:19:13 -0700 (PDT) X-Received: by 10.112.97.135 with SMTP id ea7mr10375235lbb.46.1413566353631; Fri, 17 Oct 2014 10:19:13 -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 c5csp268249lbz; Fri, 17 Oct 2014 10:19:12 -0700 (PDT) X-Received: by 10.68.211.6 with SMTP id my6mr9761714pbc.125.1413566339909; Fri, 17 Oct 2014 10:18:59 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ua2si1625749pab.145.2014.10.17.10.18.59 for ; Fri, 17 Oct 2014 10:18:59 -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 S1753720AbaJQRS3 (ORCPT + 3 others); Fri, 17 Oct 2014 13:18:29 -0400 Received: from arroyo.ext.ti.com ([192.94.94.40]:56025 "EHLO arroyo.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753688AbaJQRSY (ORCPT ); Fri, 17 Oct 2014 13:18:24 -0400 Received: from dflxv15.itg.ti.com ([128.247.5.124]) by arroyo.ext.ti.com (8.13.7/8.13.7) with ESMTP id s9HHIG9M029554; Fri, 17 Oct 2014 12:18:16 -0500 Received: from DLEE71.ent.ti.com (dlee71.ent.ti.com [157.170.170.114]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id s9HHIG56029792; Fri, 17 Oct 2014 12:18:16 -0500 Received: from dflp33.itg.ti.com (10.64.6.16) by DLEE71.ent.ti.com (157.170.170.114) with Microsoft SMTP Server id 14.3.174.1; Fri, 17 Oct 2014 12:18:17 -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 s9HHIF4E003364; Fri, 17 Oct 2014 12:18:16 -0500 From: Felipe Balbi To: Linux USB Mailing List CC: Greg KH , , Paul Zimmerman , , , , , , , Felipe Balbi Subject: [PATCH 49/67] usb: gadget: udc: mv_udc: do not rely on 'driver' argument Date: Fri, 17 Oct 2014 12:16:56 -0500 Message-ID: <1413566234-13537-50-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.217.176 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/mv_udc_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/gadget/udc/mv_udc_core.c b/drivers/usb/gadget/udc/mv_udc_core.c index cebb948..32d24ff 100644 --- a/drivers/usb/gadget/udc/mv_udc_core.c +++ b/drivers/usb/gadget/udc/mv_udc_core.c @@ -1386,7 +1386,7 @@ static int mv_udc_stop(struct usb_gadget *gadget, /* stop all usb activities */ udc->gadget.speed = USB_SPEED_UNKNOWN; - stop_activity(udc, driver); + stop_activity(udc, NULL); mv_udc_disable(udc); spin_unlock_irqrestore(&udc->lock, flags);