* [PATCH -next] HID: cmedia: Add __init/__exit annotations to module init/exit funcs
@ 2022-09-26 11:04 ruanjinjie
0 siblings, 0 replies; only message in thread
From: ruanjinjie @ 2022-09-26 11:04 UTC (permalink / raw)
To: jikos, benjamin.tissoires, linux-input, linux-kernel; +Cc: ruanjinjie
Add missing __init/__exit annotations to module init/exit funcs
Signed-off-by: ruanjinjie <ruanjinjie@huawei.com>
---
drivers/hid/hid-cmedia.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/hid/hid-cmedia.c b/drivers/hid/hid-cmedia.c
index cab42047bc99..c5bd14544cdc 100644
--- a/drivers/hid/hid-cmedia.c
+++ b/drivers/hid/hid-cmedia.c
@@ -222,7 +222,7 @@ static struct hid_driver cmhid_hs100b_driver = {
.report_fixup = cmhid_hs100b_report_fixup,
};
-static int cmedia_init(void)
+static int __init cmedia_init(void)
{
int ret;
@@ -238,7 +238,7 @@ static int cmedia_init(void)
}
module_init(cmedia_init);
-static void cmedia_exit(void)
+static void __exit cmedia_exit(void)
{
hid_unregister_driver(&cmhid_driver);
hid_unregister_driver(&cmhid_hs100b_driver);
--
2.25.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2022-09-26 14:42 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-26 11:04 [PATCH -next] HID: cmedia: Add __init/__exit annotations to module init/exit funcs ruanjinjie
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).