Commit 0d3ca262 authored by Felipe Balbi's avatar Felipe Balbi

usb: dwc2: gadget: do not call usb_gadget_unregister_driver()

that call is completely unnecessary because
usb_del_gadget_udc() already makes sure the
gadget driver is properly unregistered from
the UDC.
Acked-by: default avatarPaul Zimmerman <paulz@synopsys.com>
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
parent f4fd094c
...@@ -3605,14 +3605,7 @@ static int s3c_hsotg_remove(struct platform_device *pdev) ...@@ -3605,14 +3605,7 @@ static int s3c_hsotg_remove(struct platform_device *pdev)
struct s3c_hsotg *hsotg = platform_get_drvdata(pdev); struct s3c_hsotg *hsotg = platform_get_drvdata(pdev);
usb_del_gadget_udc(&hsotg->gadget); usb_del_gadget_udc(&hsotg->gadget);
s3c_hsotg_delete_debug(hsotg); s3c_hsotg_delete_debug(hsotg);
if (hsotg->driver) {
/* should have been done already by driver model core */
usb_gadget_unregister_driver(hsotg->driver);
}
clk_disable_unprepare(hsotg->clk); clk_disable_unprepare(hsotg->clk);
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment