summaryrefslogtreecommitdiff
path: root/drivers/usb/gadget/legacy/hid.c
diff options
context:
space:
mode:
authorAndrzej Pietrasiewicz <andrzej.p@samsung.com>2014-11-06 13:11:58 +0300
committerFelipe Balbi <balbi@ti.com>2014-11-07 01:18:17 +0300
commit00896f66f5032e5f53874a76e02cdad09f7ff90b (patch)
treef439b7c89f9f724c44cb17118f3e0297c54edeb3 /drivers/usb/gadget/legacy/hid.c
parent634060870afbfbe37a567f35b78da9b74e81ad84 (diff)
downloadlinux-00896f66f5032e5f53874a76e02cdad09f7ff90b.tar.xz
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: Andrzej Pietrasiewicz <andrzej.p@samsung.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/gadget/legacy/hid.c')
-rw-r--r--drivers/usb/gadget/legacy/hid.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/gadget/legacy/hid.c b/drivers/usb/gadget/legacy/hid.c
index 778613eb37af..fba80a25260b 100644
--- a/drivers/usb/gadget/legacy/hid.c
+++ b/drivers/usb/gadget/legacy/hid.c
@@ -260,7 +260,7 @@ module_init(hidg_init);
static void __exit hidg_cleanup(void)
{
- platform_driver_unregister(&hidg_plat_driver);
usb_composite_unregister(&hidg_driver);
+ platform_driver_unregister(&hidg_plat_driver);
}
module_exit(hidg_cleanup);