From patchwork Fri Oct 17 17:16:54 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Felipe Balbi X-Patchwork-Id: 38942 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f200.google.com (mail-lb0-f200.google.com [209.85.217.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 89F7E202DB for ; Fri, 17 Oct 2014 17:18:43 +0000 (UTC) Received: by mail-lb0-f200.google.com with SMTP id b6sf724168lbj.3 for ; Fri, 17 Oct 2014 10:18:42 -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=PzR0zJ4rasqLJyDlMXH4cZsE8r+5yUcLqMJai8Z85EI=; b=GMTO2TbKHrGyZ7k0puzMEFD2LpdyUe5qYnBa9zVJmuLrpx/6kvxJG4rzV7r0CQi1tz oqE48SSLsCZ88GTIbMYwV2Og8/Lmndtw0nVlf45aCVpukAG2607wupD2B4vUqH78gUKu 6fNBP7Svde1t1AGQwR8m/zQ1b336MezdMNlMcc1wnbVy8wkO79AVfxVcb27l4DcBzXvQ nr2rsIiPf5cU1045jGZOwmI67z8ZSTFF9mQfNk15rYsEY+uTxfIJqoGqq3tVFV9KRTwb 7lcoU9pv6jMWxxdKG9rFOhq/5EFsWutC2Vzc5RIhRdtkVl2p/wRza3M4ETdxjmI8rwUT Px1A== X-Gm-Message-State: ALoCoQmde8277fqQGRINbnBglw+jmh/+g++KaYs5hammgFLeLVb6DnE/Lh4bGQV0YejLO5F2MxAV X-Received: by 10.180.98.165 with SMTP id ej5mr851280wib.1.1413566322472; Fri, 17 Oct 2014 10:18:42 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.120.200 with SMTP id le8ls288939lab.101.gmail; Fri, 17 Oct 2014 10:18:42 -0700 (PDT) X-Received: by 10.112.66.166 with SMTP id g6mr10117846lbt.69.1413566322320; Fri, 17 Oct 2014 10:18:42 -0700 (PDT) Received: from mail-lb0-f181.google.com (mail-lb0-f181.google.com. [209.85.217.181]) by mx.google.com with ESMTPS id q4si3047252laa.10.2014.10.17.10.18.42 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 17 Oct 2014 10:18:42 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.181 as permitted sender) client-ip=209.85.217.181; Received: by mail-lb0-f181.google.com with SMTP id l4so1025350lbv.26 for ; Fri, 17 Oct 2014 10:18:42 -0700 (PDT) X-Received: by 10.112.167.38 with SMTP id zl6mr10261887lbb.34.1413566322234; Fri, 17 Oct 2014 10:18:42 -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 c5csp268139lbz; Fri, 17 Oct 2014 10:18:40 -0700 (PDT) X-Received: by 10.66.144.106 with SMTP id sl10mr9744187pab.96.1413566315232; Fri, 17 Oct 2014 10:18:35 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id rg2si1635731pbc.127.2014.10.17.10.18.34 for ; Fri, 17 Oct 2014 10:18:35 -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 S1753714AbaJQRSa (ORCPT + 3 others); Fri, 17 Oct 2014 13:18:30 -0400 Received: from comal.ext.ti.com ([198.47.26.152]:55839 "EHLO comal.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753665AbaJQRSX (ORCPT ); Fri, 17 Oct 2014 13:18:23 -0400 Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by comal.ext.ti.com (8.13.7/8.13.7) with ESMTP id s9HHIEoO011756; Fri, 17 Oct 2014 12:18:14 -0500 Received: from DFLE72.ent.ti.com (dfle72.ent.ti.com [128.247.5.109]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id s9HHIEWa001228; Fri, 17 Oct 2014 12:18:14 -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:14 -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 s9HHIDS6030456; Fri, 17 Oct 2014 12:18:14 -0500 From: Felipe Balbi To: Linux USB Mailing List CC: Greg KH , , Paul Zimmerman , , , , , , , Felipe Balbi Subject: [PATCH 47/67] usb: gadget: udc: lpc32xx: do not rely on 'driver' argument Date: Fri, 17 Oct 2014 12:16:54 -0500 Message-ID: <1413566234-13537-48-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.181 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/lpc32xx_udc.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/usb/gadget/udc/lpc32xx_udc.c b/drivers/usb/gadget/udc/lpc32xx_udc.c index feab0ba..cef64b9 100644 --- a/drivers/usb/gadget/udc/lpc32xx_udc.c +++ b/drivers/usb/gadget/udc/lpc32xx_udc.c @@ -2967,9 +2967,6 @@ static int lpc32xx_stop(struct usb_gadget *gadget, int i; struct lpc32xx_udc *udc = to_udc(gadget); - if (!driver || driver != udc->driver) - return -EINVAL; - for (i = IRQ_USB_LP; i <= IRQ_USB_ATX; i++) disable_irq(udc->udp_irq[i]);