aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremy Kerr <[email protected]>2021-09-29 07:26:11 +0000
committerDavid S. Miller <[email protected]>2021-09-29 10:00:11 +0000
commit97f09abffcb967144ed01fe9d09d0fba499ffc6f (patch)
treea186389f69feb6898ceac73cd7d75bc954643406
parentmctp: Add tracepoints for tag/key handling (diff)
downloadkernel-97f09abffcb967144ed01fe9d09d0fba499ffc6f.tar.gz
kernel-97f09abffcb967144ed01fe9d09d0fba499ffc6f.zip
mctp: Do inits as a subsys_initcall
In a future change, we'll want to provide a registration call for mctp-specific devices. This requires us to have the networks established before device driver inits, so run the core init as a subsys_initcall. Signed-off-by: Jeremy Kerr <[email protected]> Signed-off-by: David S. Miller <[email protected]>
-rw-r--r--net/mctp/af_mctp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/mctp/af_mctp.c b/net/mctp/af_mctp.c
index 28cb1633bed6..66a411d60b6c 100644
--- a/net/mctp/af_mctp.c
+++ b/net/mctp/af_mctp.c
@@ -435,7 +435,7 @@ static __exit void mctp_exit(void)
sock_unregister(PF_MCTP);
}
-module_init(mctp_init);
+subsys_initcall(mctp_init);
module_exit(mctp_exit);
MODULE_DESCRIPTION("MCTP core");