summaryrefslogtreecommitdiff
path: root/net/mctp
diff options
context:
space:
mode:
authorJeremy Kerr <jk@codeconstruct.com.au>2021-09-29 10:26:11 +0300
committerJoel Stanley <joel@jms.id.au>2022-03-18 03:36:32 +0300
commita519fa05c7c09129a17c93cc19dab907216cb6f8 (patch)
tree5fb28ab54eee84857380fdfad1db321b4372c413 /net/mctp
parent7af59d80e3cf48559dba2e587444d94dae7ef2c9 (diff)
downloadlinux-a519fa05c7c09129a17c93cc19dab907216cb6f8.tar.xz
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. OpenBMC-Staging-Count: 1 Signed-off-by: Jeremy Kerr <jk@codeconstruct.com.au> Signed-off-by: David S. Miller <davem@davemloft.net> (cherry picked from commit 97f09abffcb967144ed01fe9d09d0fba499ffc6f) Signed-off-by: Joel Stanley <joel@jms.id.au>
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 3e9bdfa10671..cd2837ec60d1 100644
--- a/net/mctp/af_mctp.c
+++ b/net/mctp/af_mctp.c
@@ -448,7 +448,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");