From patchwork Fri Oct 17 17:16:50 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Felipe Balbi X-Patchwork-Id: 38971 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f69.google.com (mail-wg0-f69.google.com [74.125.82.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 4E317202DB for ; Fri, 17 Oct 2014 17:19:34 +0000 (UTC) Received: by mail-wg0-f69.google.com with SMTP id b13sf721867wgh.0 for ; Fri, 17 Oct 2014 10:19:33 -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=Mm6u0wSyEDD1pvJvyqYfequicRX8or5NeIvs/P/L4Bw=; b=K4eyqE97P7XQ9xlVyQ6fNTVBOHSiBMFcooDAi7kKX+NOcu7NjhHvLEjzYaWi07hO9V tPycvAt3MZQCeBq7aEmIcH+gVF17IgdeW9u7/sY6F7k7rCS3KXfiAFrQH6rgaU7BawsJ ykLPDwQRSjhxawNy/WmGkUZM6XSLSeo2A5CV6usMcK+6Wyw+A60RdwwiYTFVaYAu/u9H 7ByMF+Ures3A3zRm0cwSCBx+/mXDvAfzfpLppgGtcO6wnccdzOSCZHj+AJBscwY4fHtu XF8MSpbR1PRNeQnHx3kO7rvl/cUxy8gfcsuh8+ZmZQBRam5m4ZarfKcjXYoU2VvLPZNR Rl8w== X-Gm-Message-State: ALoCoQkXCGC9I7tguuMTHN/Bxrh/4/FmlbhRDBkExRD4+opCp9gEkyePlG6drIFZ4rGCaiJ/E+s9 X-Received: by 10.181.11.130 with SMTP id ei2mr55588wid.3.1413566373493; Fri, 17 Oct 2014 10:19:33 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.8.52 with SMTP id o20ls298137laa.3.gmail; Fri, 17 Oct 2014 10:19:33 -0700 (PDT) X-Received: by 10.153.11.133 with SMTP id ei5mr10229637lad.75.1413566373328; Fri, 17 Oct 2014 10:19:33 -0700 (PDT) Received: from mail-lb0-f175.google.com (mail-lb0-f175.google.com. [209.85.217.175]) by mx.google.com with ESMTPS id re5si2999636lbb.68.2014.10.17.10.19.33 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 17 Oct 2014 10:19:33 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.175 as permitted sender) client-ip=209.85.217.175; Received: by mail-lb0-f175.google.com with SMTP id u10so1020218lbd.20 for ; Fri, 17 Oct 2014 10:19:33 -0700 (PDT) X-Received: by 10.152.6.228 with SMTP id e4mr10163525laa.71.1413566373239; Fri, 17 Oct 2014 10:19:33 -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 c5csp268334lbz; Fri, 17 Oct 2014 10:19:32 -0700 (PDT) X-Received: by 10.66.184.195 with SMTP id ew3mr10099652pac.2.1413566368034; Fri, 17 Oct 2014 10:19:28 -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.27 for ; Fri, 17 Oct 2014 10:19:28 -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 S1753823AbaJQRTT (ORCPT + 3 others); Fri, 17 Oct 2014 13:19:19 -0400 Received: from bear.ext.ti.com ([192.94.94.41]:44380 "EHLO bear.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753684AbaJQRST (ORCPT ); Fri, 17 Oct 2014 13:18:19 -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 s9HHIAIV008069; Fri, 17 Oct 2014 12:18:10 -0500 Received: from DFLE72.ent.ti.com (dfle72.ent.ti.com [128.247.5.109]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id s9HHIAGG029737; Fri, 17 Oct 2014 12:18:10 -0500 Received: from dlep33.itg.ti.com (157.170.170.75) by DFLE72.ent.ti.com (128.247.5.109) with Microsoft SMTP Server id 14.3.174.1; Fri, 17 Oct 2014 12:18:10 -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 s9HHI9we030429; Fri, 17 Oct 2014 12:18:10 -0500 From: Felipe Balbi To: Linux USB Mailing List CC: Greg KH , , Paul Zimmerman , , , , , , , Felipe Balbi Subject: [PATCH 43/67] usb: gadget: udc: amd5536: do not rely on 'driver' argument Date: Fri, 17 Oct 2014 12:16:50 -0500 Message-ID: <1413566234-13537-44-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.175 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/amd5536udc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/gadget/udc/amd5536udc.c b/drivers/usb/gadget/udc/amd5536udc.c index 3b9d138..7d0e0b8 100644 --- a/drivers/usb/gadget/udc/amd5536udc.c +++ b/drivers/usb/gadget/udc/amd5536udc.c @@ -1971,7 +1971,7 @@ static int amd5536_udc_stop(struct usb_gadget *g, spin_lock_irqsave(&dev->lock, flags); udc_mask_unused_interrupts(dev); - shutdown(dev, driver); + shutdown(dev, NULL); spin_unlock_irqrestore(&dev->lock, flags); dev->driver = NULL;