net: Convert all sysctl registrations to register_net_sysctl
[linux-2.6-block.git] / net / dccp / sysctl.c
index 42348824ee318c31f4a3ae901d1d5e57aa1f8c17..607ab71b5a0cb3af65067e7d69badb862d5bfb5a 100644 (file)
@@ -98,18 +98,11 @@ static struct ctl_table dccp_default_table[] = {
        { }
 };
 
-static struct ctl_path dccp_path[] = {
-       { .procname = "net", },
-       { .procname = "dccp", },
-       { .procname = "default", },
-       { }
-};
-
 static struct ctl_table_header *dccp_table_header;
 
 int __init dccp_sysctl_init(void)
 {
-       dccp_table_header = register_sysctl_paths(dccp_path,
+       dccp_table_header = register_net_sysctl(&init_net, "net/dccp/default",
                        dccp_default_table);
 
        return dccp_table_header != NULL ? 0 : -ENOMEM;
@@ -118,7 +111,7 @@ int __init dccp_sysctl_init(void)
 void dccp_sysctl_exit(void)
 {
        if (dccp_table_header != NULL) {
-               unregister_sysctl_table(dccp_table_header);
+               unregister_net_sysctl_table(dccp_table_header);
                dccp_table_header = NULL;
        }
 }