aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/utsname_sysctl.c
diff options
context:
space:
mode:
authorFabian Frederick <fabf@skynet.be>2014-06-04 19:11:26 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2014-06-04 19:54:15 -0400
commit95583e4ab5745218373add88ffddb70faff2d0c8 (patch)
tree76de18e06ecd5c46dde90a98ed9135f6c8b5f1c8 /kernel/utsname_sysctl.c
parent616feab753972b9751308f3cd2a68fc57eae8edb (diff)
kernel/utsname_sysctl.c: replace obsolete __initcall by device_initcall
Also fixes checkpatch warnings on proc_dostring function parameters Signed-off-by: Fabian Frederick <fabf@skynet.be> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'kernel/utsname_sysctl.c')
-rw-r--r--kernel/utsname_sysctl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/utsname_sysctl.c b/kernel/utsname_sysctl.c
index 4f69f9a5e221..6fbe811c7ad1 100644
--- a/kernel/utsname_sysctl.c
+++ b/kernel/utsname_sysctl.c
@@ -51,7 +51,7 @@ static int proc_do_uts_string(ctl_table *table, int write,
51 int r; 51 int r;
52 memcpy(&uts_table, table, sizeof(uts_table)); 52 memcpy(&uts_table, table, sizeof(uts_table));
53 uts_table.data = get_uts(table, write); 53 uts_table.data = get_uts(table, write);
54 r = proc_dostring(&uts_table,write,buffer,lenp, ppos); 54 r = proc_dostring(&uts_table, write, buffer, lenp, ppos);
55 put_uts(table, write, uts_table.data); 55 put_uts(table, write, uts_table.data);
56 56
57 if (write) 57 if (write)
@@ -135,4 +135,4 @@ static int __init utsname_sysctl_init(void)
135 return 0; 135 return 0;
136} 136}
137 137
138__initcall(utsname_sysctl_init); 138device_initcall(utsname_sysctl_init);