diff options
author | Pavel Emelyanov <xemul@openvz.org> | 2008-01-09 00:30:05 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 15:01:07 -0800 |
commit | b5ccd792fa413f9336273cb8fa3b9dd3a7ec1735 (patch) | |
tree | 64b23972fdf667baa74a0895bf403b22eb7de86c /net/irda/irsysctl.c | |
parent | cb7928a528264a69b29b6001b490b64607ed0557 (diff) | |
download | linux-b5ccd792fa413f9336273cb8fa3b9dd3a7ec1735.tar.gz linux-b5ccd792fa413f9336273cb8fa3b9dd3a7ec1735.tar.bz2 linux-b5ccd792fa413f9336273cb8fa3b9dd3a7ec1735.zip |
[NET]: Simple ctl_table to ctl_path conversions.
This patch includes many places, that only required
replacing the ctl_table-s with appropriate ctl_paths
and call register_sysctl_paths().
Nothing special was done with them.
Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/irda/irsysctl.c')
-rw-r--r-- | net/irda/irsysctl.c | 28 |
1 files changed, 5 insertions, 23 deletions
diff --git a/net/irda/irsysctl.c b/net/irda/irsysctl.c index 565cbf0421cd..d8aba869ff11 100644 --- a/net/irda/irsysctl.c +++ b/net/irda/irsysctl.c @@ -234,28 +234,10 @@ static ctl_table irda_table[] = { { .ctl_name = 0 } }; -/* One directory */ -static ctl_table irda_net_table[] = { - { - .ctl_name = NET_IRDA, - .procname = "irda", - .maxlen = 0, - .mode = 0555, - .child = irda_table - }, - { .ctl_name = 0 } -}; - -/* The parent directory */ -static ctl_table irda_root_table[] = { - { - .ctl_name = CTL_NET, - .procname = "net", - .maxlen = 0, - .mode = 0555, - .child = irda_net_table - }, - { .ctl_name = 0 } +static struct ctl_path irda_path[] = { + { .procname = "net", .ctl_name = CTL_NET, }, + { .procname = "irda", .ctl_name = NET_IRDA, }, + { } }; static struct ctl_table_header *irda_table_header; @@ -268,7 +250,7 @@ static struct ctl_table_header *irda_table_header; */ int __init irda_sysctl_register(void) { - irda_table_header = register_sysctl_table(irda_root_table); + irda_table_header = register_sysctl_paths(irda_path, irda_table); if (!irda_table_header) return -ENOMEM; |