mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2025-01-19 12:24:34 +08:00
USB: host: ehci-pmcmsp: Cleanup usb_hcd_msp_remove()
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 <tglx@linutronix.de> Acked-by: Alan Stern <stern@rowland.harvard.edu> Link: https://lore.kernel.org/r/20201019101110.530302737@linutronix.de Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
19220bac2c
commit
2e7e9b64be
@ -236,7 +236,7 @@ err1:
|
|||||||
* may be called without controller electrically present
|
* may be called without controller electrically present
|
||||||
* may be called with controller, bus, and devices active
|
* 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);
|
usb_remove_hcd(hcd);
|
||||||
iounmap(hcd->regs);
|
iounmap(hcd->regs);
|
||||||
@ -309,7 +309,7 @@ static int ehci_hcd_msp_drv_remove(struct platform_device *pdev)
|
|||||||
{
|
{
|
||||||
struct usb_hcd *hcd = platform_get_drvdata(pdev);
|
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 */
|
/* free TWI GPIO USB_HOST_DEV pin */
|
||||||
gpio_free(MSP_PIN_USB0_HOST_DEV);
|
gpio_free(MSP_PIN_USB0_HOST_DEV);
|
||||||
|
Loading…
Reference in New Issue
Block a user