提交 00896f66 编写于 作者: A Andrzej Pietrasiewicz 提交者: Felipe Balbi

usb: gadget: hid: mirror init operations in module cleanup

So far platform driver has been unregistered first,
so just after that the usb composite is still available,
but there is no hid data any more.

Reverse the order so that first the usb composite becomes
unavailable and second the hid data goes away.
Signed-off-by: NAndrzej Pietrasiewicz <andrzej.p@samsung.com>
Signed-off-by: NFelipe Balbi <balbi@ti.com>
上级 63406087
...@@ -260,7 +260,7 @@ module_init(hidg_init); ...@@ -260,7 +260,7 @@ module_init(hidg_init);
static void __exit hidg_cleanup(void) static void __exit hidg_cleanup(void)
{ {
platform_driver_unregister(&hidg_plat_driver);
usb_composite_unregister(&hidg_driver); usb_composite_unregister(&hidg_driver);
platform_driver_unregister(&hidg_plat_driver);
} }
module_exit(hidg_cleanup); module_exit(hidg_cleanup);
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册