summaryrefslogtreecommitdiff
path: root/drivers/tee
diff options
context:
space:
mode:
authorXiu Jianfeng <xiujianfeng@huawei.com>2022-09-24 17:28:20 +0800
committerJens Wiklander <jens.wiklander@linaro.org>2022-10-11 11:20:16 +0200
commitbd52407221b4702af690456b2b6006fa6440e893 (patch)
treefd99b342b27c955064f367dd24aa482e9514a986 /drivers/tee
parent4fe89d07dcc2804c8b562f6c7896a45643d34b2f (diff)
optee: Add __init/__exit annotations to module init/exit funcs
Add missing __init/__exit annotations to module init/exit funcs. Reviewed-by: Sumit Garg <sumit.garg@linaro.org> Signed-off-by: Xiu Jianfeng <xiujianfeng@huawei.com> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
Diffstat (limited to 'drivers/tee')
-rw-r--r--drivers/tee/optee/core.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/tee/optee/core.c b/drivers/tee/optee/core.c
index daf07737c4fd..2a258bd3b6b5 100644
--- a/drivers/tee/optee/core.c
+++ b/drivers/tee/optee/core.c
@@ -188,7 +188,7 @@ void optee_remove_common(struct optee *optee)
static int smc_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
@@ -210,7 +210,7 @@ static int optee_core_init(void)
}
module_init(optee_core_init);
-static void optee_core_exit(void)
+static void __exit optee_core_exit(void)
{
if (!smc_abi_rc)
optee_smc_abi_unregister();