Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp3334696pxu; Mon, 19 Oct 2020 09:32:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzNf3aID+ECYouvruBhYW1rlgp3W/VDq/xGOtr0GpIEWDyrlsBqLZWz/qjgBxBc2STHCgRA X-Received: by 2002:a17:906:364f:: with SMTP id r15mr702869ejb.388.1603125122833; Mon, 19 Oct 2020 09:32:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603125122; cv=none; d=google.com; s=arc-20160816; b=k21CFwCWb7WWxZbBkYR2NoZHLZI2QP8lPG0hKhznKuThN2yoeSx7+77H+XUfTwp9bT oC2RVotUui/LCp8dYIY3BlRD7te8i2P/fYyEqT8rqTnWRZFvF2N7EgH+RiiWsOooJsQ9 CCsmH4pNgPLgCantFlg7IRxG6Y68+7wC4/9Alnk6BXRa5lzJaHvU7Iv57Lb1n57B8K/h dSWQT78orVqFH8CCsJpPY6LSihK3Z2A4ZQ1sQsi5rcL5tRbZU4D/YGdo/hECJj/rHvM6 S5Qoj3LAWUGwmbIsV3Q44Uque0FoXOJSw2dzjVyLlBsySDlI5VIl6F0tbm8Mx5GR4A5M szCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=ITWhjXTm/ru3rT7Dzl++lHAFKArW7WIu9ZR+mGT+8qk=; b=Uq1XS2K5RV2BUQdWqPDztsGVThPe0J70SP/fXZP26ppUCKbYDSCYGvZvUITBf6zKdq hHKmrwBlBmcuk8p3Y78UiQjjekhqk7MKW88tM/s0VRrShHH3YFdXxssUc9PwZbldQq0z X05uUzRKyHU89fPhe8lbIooOyIHLHH4Cy2uh2ppVJBQjiu/Y3FTu0mVLSrNd5GLhivCT h5wid59vrPAsI2FhDnjf7NCq4EOeEn6rYRzF62UhZHj/3DhwbaP/BMzrJW/r2tTUNjLy 8K2y2paZN+UQPzJGd/cZtCcrbiJRp0Ff41pEJBL5Dge54gCJ53VPkaNMxoXmGF8bm/Zt rW4w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x90si103278ede.58.2020.10.19.09.31.41; Mon, 19 Oct 2020 09:32:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730596AbgJSQ22 (ORCPT + 99 others); Mon, 19 Oct 2020 12:28:28 -0400 Received: from netrider.rowland.org ([192.131.102.5]:48843 "HELO netrider.rowland.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1730525AbgJSQ21 (ORCPT ); Mon, 19 Oct 2020 12:28:27 -0400 Received: (qmail 902149 invoked by uid 1000); 19 Oct 2020 12:28:26 -0400 Date: Mon, 19 Oct 2020 12:28:26 -0400 From: Alan Stern To: Thomas Gleixner Cc: LKML , Peter Zijlstra , Thomas Winischhofer , Greg Kroah-Hartman , linux-usb@vger.kernel.org, "Ahmed S. Darwish" , Sebastian Andrzej Siewior , Johan Hovold , Mathias Nyman , Valentina Manea , Shuah Khan , linux-omap@vger.kernel.org, Kukjin Kim , Krzysztof Kozlowski , linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, Felipe Balbi , Duncan Sands Subject: Re: [patch V2 09/13] USB: host: ehci-pmcmsp: Cleanup usb_hcd_msp_remove() Message-ID: <20201019162826.GB898631@rowland.harvard.edu> References: <20201019100629.419020859@linutronix.de> <20201019101110.530302737@linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201019101110.530302737@linutronix.de> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Oct 19, 2020 at 12:06:38PM +0200, Thomas Gleixner wrote: > usb_hcd_msp_remove() has a pdev argument which isn't used and the function > is used only within this file. > > Remove pdev and make usb_hcd_msp_remove() static. > > Signed-off-by: Thomas Gleixner > --- > V2: Split out from comments patch > --- > drivers/usb/host/ehci-pmcmsp.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > --- a/drivers/usb/host/ehci-pmcmsp.c > +++ b/drivers/usb/host/ehci-pmcmsp.c > @@ -236,7 +236,7 @@ int usb_hcd_msp_probe(const struct hc_dr > * may be called without controller electrically present > * may be called with controller, bus, and devices active > */ > -void usb_hcd_msp_remove(struct usb_hcd *hcd, struct platform_device *dev) > +static void usb_hcd_msp_remove(struct usb_hcd *hcd) > { > usb_remove_hcd(hcd); > iounmap(hcd->regs); > @@ -309,7 +309,7 @@ static int ehci_hcd_msp_drv_remove(struc > { > struct usb_hcd *hcd = platform_get_drvdata(pdev); > > - usb_hcd_msp_remove(hcd, pdev); > + usb_hcd_msp_remove(hcd); > > /* free TWI GPIO USB_HOST_DEV pin */ > gpio_free(MSP_PIN_USB0_HOST_DEV); Acked-by: Alan Stern