mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-25 00:11:07 +00:00
33406940f3
Fixes #4007
40 lines
1001 B
Diff
40 lines
1001 B
Diff
diff --git a/drivers/hid/usbhid/hid-core.c b/drivers/hid/usbhid/hid-core.c
|
|
index 77c50cd..b7d37b2 100644
|
|
--- a/drivers/hid/usbhid/hid-core.c
|
|
+++ b/drivers/hid/usbhid/hid-core.c
|
|
@@ -1386,6 +1386,7 @@ static int usbhid_probe(struct usb_interface *intf, const struct usb_device_id *
|
|
err_free:
|
|
kfree(usbhid);
|
|
err:
|
|
+ usb_set_intfdata(intf, NULL);
|
|
hid_destroy_device(hid);
|
|
return ret;
|
|
}
|
|
@@ -1636,7 +1637,7 @@ struct usb_interface *usbhid_find_interface(int minor)
|
|
return usb_find_interface(&hid_driver, minor);
|
|
}
|
|
|
|
-static int __init hid_init(void)
|
|
+static int __init usbhid_init(void)
|
|
{
|
|
int retval = -ENOMEM;
|
|
|
|
@@ -1655,14 +1656,14 @@ usbhid_quirks_init_fail:
|
|
return retval;
|
|
}
|
|
|
|
-static void __exit hid_exit(void)
|
|
+static void __exit usbhid_exit(void)
|
|
{
|
|
usb_deregister(&hid_driver);
|
|
hid_quirks_exit(BUS_USB);
|
|
}
|
|
|
|
-module_init(hid_init);
|
|
-module_exit(hid_exit);
|
|
+module_init(usbhid_init);
|
|
+module_exit(usbhid_exit);
|
|
|
|
MODULE_AUTHOR("Andreas Gal");
|
|
MODULE_AUTHOR("Vojtech Pavlik");
|