aboutsummaryrefslogtreecommitdiffstats
path: root/net/irda/irsysctl.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/irda/irsysctl.c')
-rw-r--r--net/irda/irsysctl.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/net/irda/irsysctl.c b/net/irda/irsysctl.c
index 20ced38fc371..de73f6496db5 100644
--- a/net/irda/irsysctl.c
+++ b/net/irda/irsysctl.c
@@ -235,12 +235,6 @@ static ctl_table irda_table[] = {
235 { } 235 { }
236}; 236};
237 237
238static struct ctl_path irda_path[] = {
239 { .procname = "net", },
240 { .procname = "irda", },
241 { }
242};
243
244static struct ctl_table_header *irda_table_header; 238static struct ctl_table_header *irda_table_header;
245 239
246/* 240/*
@@ -251,7 +245,7 @@ static struct ctl_table_header *irda_table_header;
251 */ 245 */
252int __init irda_sysctl_register(void) 246int __init irda_sysctl_register(void)
253{ 247{
254 irda_table_header = register_net_sysctl_table(&init_net, irda_path, irda_table); 248 irda_table_header = register_net_sysctl(&init_net, "net/irda", irda_table);
255 if (!irda_table_header) 249 if (!irda_table_header)
256 return -ENOMEM; 250 return -ENOMEM;
257 251