HID: adding __init/__exit macros to module init/exit functions
Trivial patch which adds the __init and __exit macros to the module_init / module_exit functions of several HID drivers from drivers/hid/ Signed-off-by: Peter Huewe <peterhuewe@gmx.de> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
This commit is contained in:
@@ -81,12 +81,12 @@ static struct hid_driver gyration_driver = {
|
||||
.event = gyration_event,
|
||||
};
|
||||
|
||||
static int gyration_init(void)
|
||||
static int __init gyration_init(void)
|
||||
{
|
||||
return hid_register_driver(&gyration_driver);
|
||||
}
|
||||
|
||||
static void gyration_exit(void)
|
||||
static void __exit gyration_exit(void)
|
||||
{
|
||||
hid_unregister_driver(&gyration_driver);
|
||||
}
|
||||
|
Reference in New Issue
Block a user