Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a24f423b authored by Peter Huewe's avatar Peter Huewe Committed by Jiri Kosina
Browse files

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: default avatarPeter Huewe <peterhuewe@gmx.de>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
parent 7a84b133
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -145,12 +145,12 @@ static struct hid_driver a4_driver = {
	.remove = a4_remove,
};

static int a4_init(void)
static int __init a4_init(void)
{
	return hid_register_driver(&a4_driver);
}

static void a4_exit(void)
static void __exit a4_exit(void)
{
	hid_unregister_driver(&a4_driver);
}
+2 −2
Original line number Diff line number Diff line
@@ -451,7 +451,7 @@ static struct hid_driver apple_driver = {
	.input_mapped = apple_input_mapped,
};

static int apple_init(void)
static int __init apple_init(void)
{
	int ret;

@@ -462,7 +462,7 @@ static int apple_init(void)
	return ret;
}

static void apple_exit(void)
static void __exit apple_exit(void)
{
	hid_unregister_driver(&apple_driver);
}
+2 −2
Original line number Diff line number Diff line
@@ -88,12 +88,12 @@ static struct hid_driver belkin_driver = {
	.probe = belkin_probe,
};

static int belkin_init(void)
static int __init belkin_init(void)
{
	return hid_register_driver(&belkin_driver);
}

static void belkin_exit(void)
static void __exit belkin_exit(void)
{
	hid_unregister_driver(&belkin_driver);
}
+2 −2
Original line number Diff line number Diff line
@@ -70,12 +70,12 @@ static struct hid_driver ch_driver = {
	.input_mapping = ch_input_mapping,
};

static int ch_init(void)
static int __init ch_init(void)
{
	return hid_register_driver(&ch_driver);
}

static void ch_exit(void)
static void __exit ch_exit(void)
{
	hid_unregister_driver(&ch_driver);
}
+2 −2
Original line number Diff line number Diff line
@@ -63,12 +63,12 @@ static struct hid_driver ch_driver = {
	.input_mapping = ch_input_mapping,
};

static int ch_init(void)
static int __init ch_init(void)
{
	return hid_register_driver(&ch_driver);
}

static void ch_exit(void)
static void __exit ch_exit(void)
{
	hid_unregister_driver(&ch_driver);
}
Loading