summaryrefslogtreecommitdiffstats
path: root/fs/proc/consoles.c
diff options
context:
space:
mode:
authorAlexey Dobriyan <adobriyan@gmail.com>2011-01-13 02:00:36 +0100
committerLinus Torvalds <torvalds@linux-foundation.org>2011-01-13 17:03:17 +0100
commitbf33cbdf8acccf96de268fbfb347d94e72de81ef (patch)
treecc859c9a4f5f38a8452abfe1a79af13900e35421 /fs/proc/consoles.c
parentproc: less LOCK/UNLOCK in remove_proc_entry() (diff)
downloadlinux-bf33cbdf8acccf96de268fbfb347d94e72de81ef.tar.xz
linux-bf33cbdf8acccf96de268fbfb347d94e72de81ef.zip
proc: move proc_console.c to fs/proc/consoles.c
Filename is supposed to match procfile name for random junk. Add __init while I'm at it. Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to '')
-rw-r--r--fs/proc/consoles.c (renamed from fs/proc/proc_console.c)4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/proc/proc_console.c b/fs/proc/consoles.c
index 8a707609f528..eafc22ab1fdd 100644
--- a/fs/proc/proc_console.c
+++ b/fs/proc/consoles.c
@@ -106,9 +106,9 @@ static const struct file_operations proc_consoles_operations = {
.release = seq_release,
};
-static int register_proc_consoles(void)
+static int __init proc_consoles_init(void)
{
proc_create("consoles", 0, NULL, &proc_consoles_operations);
return 0;
}
-module_init(register_proc_consoles);
+module_init(proc_consoles_init);