summaryrefslogtreecommitdiffstats
path: root/net/mctp
diff options
context:
space:
mode:
authorJeremy Kerr <jk@codeconstruct.com.au>2021-09-29 09:26:11 +0200
committerDavid S. Miller <davem@davemloft.net>2021-09-29 12:00:11 +0200
commit97f09abffcb967144ed01fe9d09d0fba499ffc6f (patch)
treea186389f69feb6898ceac73cd7d75bc954643406 /net/mctp
parentmctp: Add tracepoints for tag/key handling (diff)
downloadlinux-97f09abffcb967144ed01fe9d09d0fba499ffc6f.tar.xz
linux-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 <jk@codeconstruct.com.au> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/mctp')
-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");