diff --git a/net/mcast_helper/mcast_helper.c b/net/mcast_helper/mcast_helper.c index 806a4334c7c990ff65be0db019ddbc611701a2da..386dea5a4c400231c906719a07d99416bd83acc4 100644 --- a/net/mcast_helper/mcast_helper.c +++ b/net/mcast_helper/mcast_helper.c @@ -1795,7 +1795,7 @@ const struct file_operations mcast_helper_seq_fops6 = { *===========================================================================*/ -int __net_init mcast_helper_net_init(struct net *net) +int mcast_helper_net_init(void) { struct proc_dir_entry *pde, *pde6; @@ -1821,18 +1821,6 @@ out_mcast: *description : function to remove mcast helper proc entry *===========================================================================*/ -void __net_exit mcast_helper_net_exit(struct net *nt) -{ - remove_proc_entry("mcast_helper", NULL); - remove_proc_entry("mcast_helper6", NULL); -} - -struct pernet_operations mcast_net_ops = { - .init = mcast_helper_net_init, - .exit = mcast_helper_net_exit, -}; - - #ifdef CONFIG_SYSCTL /**Functions to create a proc for ACL enable/disbale support **/ @@ -1948,7 +1936,7 @@ int __init mcast_helper_proc_init(void) #endif /*create_new_proc_entry();*/ - ret = register_pernet_subsys(&mcast_net_ops); + ret = mcast_helper_net_init(); return ret; }