summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandra Winter <wintera@linux.ibm.com>2025-10-23 17:06:36 +0200
committerPaolo Abeni <pabeni@redhat.com>2025-10-28 13:42:31 +0100
commit968822086b74dd0a3df693f9d179bd4fe508faf9 (patch)
treef3d57693be4c60c352264f4fb7c103d57706db60
parent182663bbff784e88cf7acbae7c53c6c5e0cb9ca4 (diff)
dibs: Use subsys_initcall()
In the case of built-in modules, the order of module_init() calls are derived from the Makefiles. Use subsys_initcall() for the dibs module, to make sure dibs_init() is executed before dibs clients like smc and dibs devices like ism are initialized. So future dibs client or dibs device modules can use module_init() without the risk of getting the order in the Makefiles wrong. Reported-by: Mete Durlu <meted@linux.ibm.com> Signed-off-by: Alexandra Winter <wintera@linux.ibm.com> Reviewed-by: Alexander Lobakin <aleksander.lobakin@intel.com> Link: https://patch.msgid.link/20251023150636.3995476-2-wintera@linux.ibm.com Signed-off-by: Paolo Abeni <pabeni@redhat.com>
-rw-r--r--drivers/dibs/dibs_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/dibs/dibs_main.c b/drivers/dibs/dibs_main.c
index b015578b4d2e..dac14d843af7 100644
--- a/drivers/dibs/dibs_main.c
+++ b/drivers/dibs/dibs_main.c
@@ -271,5 +271,5 @@ static void __exit dibs_exit(void)
class_destroy(dibs_class);
}
-module_init(dibs_init);
+subsys_initcall(dibs_init);
module_exit(dibs_exit);