Commit 95583e4a authored by Fabian Frederick's avatar Fabian Frederick Committed by Linus Torvalds

kernel/utsname_sysctl.c: replace obsolete __initcall by device_initcall

Also fixes checkpatch warnings on proc_dostring function parameters
Signed-off-by: default avatarFabian Frederick <fabf@skynet.be>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 616feab7
...@@ -51,7 +51,7 @@ static int proc_do_uts_string(ctl_table *table, int write, ...@@ -51,7 +51,7 @@ static int proc_do_uts_string(ctl_table *table, int write,
int r; int r;
memcpy(&uts_table, table, sizeof(uts_table)); memcpy(&uts_table, table, sizeof(uts_table));
uts_table.data = get_uts(table, write); uts_table.data = get_uts(table, write);
r = proc_dostring(&uts_table,write,buffer,lenp, ppos); r = proc_dostring(&uts_table, write, buffer, lenp, ppos);
put_uts(table, write, uts_table.data); put_uts(table, write, uts_table.data);
if (write) if (write)
...@@ -135,4 +135,4 @@ static int __init utsname_sysctl_init(void) ...@@ -135,4 +135,4 @@ static int __init utsname_sysctl_init(void)
return 0; return 0;
} }
__initcall(utsname_sysctl_init); device_initcall(utsname_sysctl_init);
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment