From patchwork Fri Oct 17 17:16:55 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Felipe Balbi X-Patchwork-Id: 38956 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f199.google.com (mail-wi0-f199.google.com [209.85.212.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 2342120973 for ; Fri, 17 Oct 2014 17:19:11 +0000 (UTC) Received: by mail-wi0-f199.google.com with SMTP id d1sf801177wiv.6 for ; Fri, 17 Oct 2014 10:19:10 -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=jJtmWW67oaTP/h5v/p5L8mdQVEy6gIQ/L4jl+3qpFQI=; b=ItbR2TnPaH8bfzktAZL+ZUdUmGDpbIsxAkBv3IzT8VL/o57/F6X2c4Y0u+cER8Uu73 qahjmxId0ylLJFO+IeZwgIZFZAGm1/X8RjLupnoSsEiWVxoxEcEhIFG0HF15c+/XX4ji 7ttGYFAeSAqtX39CW8A8lg6LrbqOTZZcnIcNmurf6dZcphbYNquhWomGK1gkoq0eXm8t M88iXS9lJaVkoNPSPWEw/msR+wDluUp07vtV2DcOkUCob4GebZ7qMlEOknrwt7QvcuE9 SyJUmgjvzfyYuKvdz6tznt70ZCDxzTo0lV6juHr5g3tt3eV4A2fnb98I5X9PsKeoF6fp vLVA== X-Gm-Message-State: ALoCoQkUIyX/BQ9yZWsmTw2FNHmSmmoWVqXl1+ip2Prkb2Vl/sJ7DLJdWT17HuXp+/hlV2WtI1cT X-Received: by 10.180.19.198 with SMTP id h6mr52180wie.5.1413566350355; Fri, 17 Oct 2014 10:19:10 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.206.8 with SMTP id lk8ls242748lac.17.gmail; Fri, 17 Oct 2014 10:19:10 -0700 (PDT) X-Received: by 10.152.21.226 with SMTP id y2mr10319938lae.70.1413566350237; Fri, 17 Oct 2014 10:19:10 -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 ay3si3060941lab.0.2014.10.17.10.19.10 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 17 Oct 2014 10:19:10 -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 gi9so1062627lab.5 for ; Fri, 17 Oct 2014 10:19:10 -0700 (PDT) X-Received: by 10.112.189.10 with SMTP id ge10mr10135813lbc.23.1413566350157; Fri, 17 Oct 2014 10:19:10 -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 c5csp268236lbz; Fri, 17 Oct 2014 10:19:09 -0700 (PDT) X-Received: by 10.70.128.11 with SMTP id nk11mr9616558pdb.113.1413566337088; Fri, 17 Oct 2014 10:18:57 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id gd2si1590896pbb.180.2014.10.17.10.18.56 for ; Fri, 17 Oct 2014 10:18:57 -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 S1753712AbaJQRSa (ORCPT + 3 others); Fri, 17 Oct 2014 13:18:30 -0400 Received: from arroyo.ext.ti.com ([192.94.94.40]:56019 "EHLO arroyo.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753676AbaJQRSX (ORCPT ); Fri, 17 Oct 2014 13:18:23 -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 s9HHIFsx029551; Fri, 17 Oct 2014 12:18:15 -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 s9HHIF6V029778; Fri, 17 Oct 2014 12:18:15 -0500 Received: from dflp32.itg.ti.com (10.64.6.15) by DFLE73.ent.ti.com (128.247.5.110) with Microsoft SMTP Server id 14.3.174.1; Fri, 17 Oct 2014 12:18:15 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp32.itg.ti.com (8.14.3/8.13.8) with ESMTP id s9HHIEq5031250; Fri, 17 Oct 2014 12:18:15 -0500 From: Felipe Balbi To: Linux USB Mailing List CC: Greg KH , , Paul Zimmerman , , , , , , , Felipe Balbi Subject: [PATCH 48/67] usb: gadget: udc: mv_u3d: do not rely on 'driver' argument Date: Fri, 17 Oct 2014 12:16:55 -0500 Message-ID: <1413566234-13537-49-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/mv_u3d_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/gadget/udc/mv_u3d_core.c b/drivers/usb/gadget/udc/mv_u3d_core.c index 046a1f8..e3ef744 100644 --- a/drivers/usb/gadget/udc/mv_u3d_core.c +++ b/drivers/usb/gadget/udc/mv_u3d_core.c @@ -1284,7 +1284,7 @@ static int mv_u3d_stop(struct usb_gadget *g, mv_u3d_controller_stop(u3d); /* stop all usb activities */ u3d->gadget.speed = USB_SPEED_UNKNOWN; - mv_u3d_stop_activity(u3d, driver); + mv_u3d_stop_activity(u3d, NULL); mv_u3d_disable(u3d); if (pdata->phy_deinit)