From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.2 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id BF928C43457 for ; Mon, 19 Oct 2020 16:28:32 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 7DF0B22314 for ; Mon, 19 Oct 2020 16:28:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730607AbgJSQ22 (ORCPT ); Mon, 19 Oct 2020 12:28:28 -0400 Received: from netrider.rowland.org ([192.131.102.5]:51237 "HELO netrider.rowland.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1730596AbgJSQ21 (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-usb@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