Skip to content

Commit

Permalink
kernel/utsname_sysctl.c: replace obsolete __initcall by device_initcall
Browse files Browse the repository at this point in the history
Also fixes checkpatch warnings on proc_dostring function parameters

Signed-off-by: Fabian Frederick <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Fabian Frederick authored and torvalds committed Jun 4, 2014
1 parent 616feab commit 95583e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kernel/utsname_sysctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ static int proc_do_uts_string(ctl_table *table, int write,
int r;
memcpy(&uts_table, table, sizeof(uts_table));
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);

if (write)
Expand Down Expand Up @@ -135,4 +135,4 @@ static int __init utsname_sysctl_init(void)
return 0;
}

__initcall(utsname_sysctl_init);
device_initcall(utsname_sysctl_init);

0 comments on commit 95583e4

Please sign in to comment.