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:
@@ -48,12 +48,12 @@ static struct hid_driver ks_driver = {
|
||||
.input_mapping = ks_input_mapping,
|
||||
};
|
||||
|
||||
static int ks_init(void)
|
||||
static int __init ks_init(void)
|
||||
{
|
||||
return hid_register_driver(&ks_driver);
|
||||
}
|
||||
|
||||
static void ks_exit(void)
|
||||
static void __exit ks_exit(void)
|
||||
{
|
||||
hid_unregister_driver(&ks_driver);
|
||||
}
|
||||
|
Reference in New Issue
Block a user