aboutsummaryrefslogtreecommitdiffstats
path: root/net/llc
diff options
context:
space:
mode:
Diffstat (limited to 'net/llc')
-rw-r--r--net/llc/sysctl_net_llc.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/net/llc/sysctl_net_llc.c b/net/llc/sysctl_net_llc.c
index e2ebe3586263..9a6a65f2104b 100644
--- a/net/llc/sysctl_net_llc.c
+++ b/net/llc/sysctl_net_llc.c
@@ -7,6 +7,7 @@
7#include <linux/mm.h> 7#include <linux/mm.h>
8#include <linux/init.h> 8#include <linux/init.h>
9#include <linux/sysctl.h> 9#include <linux/sysctl.h>
10#include <net/net_namespace.h>
10#include <net/llc.h> 11#include <net/llc.h>
11 12
12#ifndef CONFIG_SYSCTL 13#ifndef CONFIG_SYSCTL
@@ -89,7 +90,7 @@ static struct ctl_table_header *llc_table_header;
89 90
90int __init llc_sysctl_init(void) 91int __init llc_sysctl_init(void)
91{ 92{
92 llc_table_header = register_sysctl_paths(llc_path, llc_table); 93 llc_table_header = register_net_sysctl_table(&init_net, llc_path, llc_table);
93 94
94 return llc_table_header ? 0 : -ENOMEM; 95 return llc_table_header ? 0 : -ENOMEM;
95} 96}
@@ -97,7 +98,7 @@ int __init llc_sysctl_init(void)
97void llc_sysctl_exit(void) 98void llc_sysctl_exit(void)
98{ 99{
99 if (llc_table_header) { 100 if (llc_table_header) {
100 unregister_sysctl_table(llc_table_header); 101 unregister_net_sysctl_table(llc_table_header);
101 llc_table_header = NULL; 102 llc_table_header = NULL;
102 } 103 }
103} 104}