net: netlink: Call netlink_proto_init() later when CONFIG_ROCKCHIP_THUNDER_BOOT=y

netlink_proto_init() depends on sock_init() to init sock_mnt.
But netlink_proto_init() and sock_init() are both in the same
core_initcall level.

Fix this by move netlink_proto_init() to the core_initcall_sync level.

Change-Id: I76733399c269efb191c5208fe45ce3add8993ebf
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
This commit is contained in:
Tao Huang
2020-03-17 19:21:21 +08:00
parent dc4e4cc806
commit d0d7ea80c0

View File

@@ -2779,4 +2779,8 @@ panic:
panic("netlink_init: Cannot allocate nl_table\n");
}
#ifdef CONFIG_ROCKCHIP_THUNDER_BOOT
core_initcall_sync(netlink_proto_init);
#else
core_initcall(netlink_proto_init);
#endif