Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 76bfa95e authored by Felipe Balbi's avatar Felipe Balbi
Browse files

usb: gadget: udc: pxa27x: 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 avatarRobert Jarzmik <robert.jarzmik@free.fr>
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
parent 7fd1f9d6
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -2501,7 +2501,6 @@ static int pxa_udc_remove(struct platform_device *_dev)
	struct pxa_udc *udc = platform_get_drvdata(_dev);

	usb_del_gadget_udc(&udc->gadget);
	usb_gadget_unregister_driver(udc->driver);
	pxa_cleanup_debugfs(udc);

	usb_put_phy(udc->transceiver);