From: Changli Gao Date: Sun, 25 Jul 2010 23:21:05 +0000 (+0000) Subject: genetlink: use genl_register_family_with_ops() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=652c6717465dbd0091dbe04ed9be2f7e59c03c7d;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git genetlink: use genl_register_family_with_ops() Signed-off-by: Changli Gao Signed-off-by: David S. Miller --- diff --git a/net/netlink/genetlink.c b/net/netlink/genetlink.c index e09e17a90b31..26ed3e8587c2 100644 --- a/net/netlink/genetlink.c +++ b/net/netlink/genetlink.c @@ -877,11 +877,7 @@ static int __init genl_init(void) for (i = 0; i < GENL_FAM_TAB_SIZE; i++) INIT_LIST_HEAD(&family_ht[i]); - err = genl_register_family(&genl_ctrl); - if (err < 0) - goto problem; - - err = genl_register_ops(&genl_ctrl, &genl_ctrl_ops); + err = genl_register_family_with_ops(&genl_ctrl, &genl_ctrl_ops, 1); if (err < 0) goto problem;