]> git.ipfire.org Git - people/arne_f/kernel.git/commitdiff
qrtr: Move to postcore_initcall
authorBjorn Andersson <bjorn.andersson@linaro.org>
Tue, 7 Nov 2017 04:50:35 +0000 (20:50 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 8 Nov 2017 05:32:18 +0000 (14:32 +0900)
Registering qrtr with module_init makes the ability of typical platform
code to create AF_QIPCRTR socket during probe a matter of link order
luck. Moving qrtr to postcore_initcall() avoids this.

Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/qrtr/qrtr.c

index c2f5c13550c052de0484582af9aabda3500cc030..78418f38464a4319f8ab6e3f4a2c3e745b698bd7 100644 (file)
@@ -1085,7 +1085,7 @@ static int __init qrtr_proto_init(void)
 
        return 0;
 }
-module_init(qrtr_proto_init);
+postcore_initcall(qrtr_proto_init);
 
 static void __exit qrtr_proto_fini(void)
 {