Commit bd524072 authored by Xiu Jianfeng's avatar Xiu Jianfeng Committed by Jens Wiklander

optee: Add __init/__exit annotations to module init/exit funcs

Add missing __init/__exit annotations to module init/exit funcs.
Reviewed-by: default avatarSumit Garg <sumit.garg@linaro.org>
Signed-off-by: default avatarXiu Jianfeng <xiujianfeng@huawei.com>
Signed-off-by: default avatarJens Wiklander <jens.wiklander@linaro.org>
parent 4fe89d07
...@@ -188,7 +188,7 @@ void optee_remove_common(struct optee *optee) ...@@ -188,7 +188,7 @@ void optee_remove_common(struct optee *optee)
static int smc_abi_rc; static int smc_abi_rc;
static int ffa_abi_rc; static int ffa_abi_rc;
static int optee_core_init(void) static int __init optee_core_init(void)
{ {
/* /*
* The kernel may have crashed at the same time that all available * The kernel may have crashed at the same time that all available
...@@ -210,7 +210,7 @@ static int optee_core_init(void) ...@@ -210,7 +210,7 @@ static int optee_core_init(void)
} }
module_init(optee_core_init); module_init(optee_core_init);
static void optee_core_exit(void) static void __exit optee_core_exit(void)
{ {
if (!smc_abi_rc) if (!smc_abi_rc)
optee_smc_abi_unregister(); optee_smc_abi_unregister();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment