diff options
Diffstat (limited to 'net/rds/ib_sysctl.c')
-rw-r--r-- | net/rds/ib_sysctl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/rds/ib_sysctl.c b/net/rds/ib_sysctl.c index 1253b006efdb..0fef3e15777b 100644 --- a/net/rds/ib_sysctl.c +++ b/net/rds/ib_sysctl.c | |||
@@ -116,12 +116,12 @@ static struct ctl_path rds_ib_sysctl_path[] = { | |||
116 | void rds_ib_sysctl_exit(void) | 116 | void rds_ib_sysctl_exit(void) |
117 | { | 117 | { |
118 | if (rds_ib_sysctl_hdr) | 118 | if (rds_ib_sysctl_hdr) |
119 | unregister_sysctl_table(rds_ib_sysctl_hdr); | 119 | unregister_net_sysctl_table(rds_ib_sysctl_hdr); |
120 | } | 120 | } |
121 | 121 | ||
122 | int rds_ib_sysctl_init(void) | 122 | int rds_ib_sysctl_init(void) |
123 | { | 123 | { |
124 | rds_ib_sysctl_hdr = register_sysctl_paths(rds_ib_sysctl_path, rds_ib_sysctl_table); | 124 | rds_ib_sysctl_hdr = register_net_sysctl_table(&init_net, rds_ib_sysctl_path, rds_ib_sysctl_table); |
125 | if (!rds_ib_sysctl_hdr) | 125 | if (!rds_ib_sysctl_hdr) |
126 | return -ENOMEM; | 126 | return -ENOMEM; |
127 | return 0; | 127 | return 0; |