genetlink: use genl_register_family_with_ops()
Subsystems (2)
PATCH 1/1 genetlink: use genl_register_family_with_ops()
Signed-off-by Changli Gao <[email protected]>
----
net/netlink/genetlink.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-)
net/netlink/genetlink.c +1 -5
@@ -873,11 +873,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;
From: Changli Gao <[email protected]>
Date: Mon, 26 Jul 2010 17:21:05 +0800
Quoted 1 line
Signed-off-by Changli Gao <[email protected]>
Applied, thanks.