aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel/rtas-proc.c
diff options
context:
space:
mode:
authorAnton Blanchard <anton@samba.org>2006-04-02 20:18:32 +1000
committerPaul Mackerras <paulus@samba.org>2006-04-13 09:27:26 -0700
commit49c28e4e40be73019481f3c13a5966e0cc8f5a9d (patch)
tree56850948646ea889d0c318d2d4a06e5b07eb976f /arch/powerpc/kernel/rtas-proc.c
parentddafddcfc78aab994cf95922befc54d98aaf371b (diff)
downloadkernel_samsung_smdk4412-49c28e4e40be73019481f3c13a5966e0cc8f5a9d.zip
kernel_samsung_smdk4412-49c28e4e40be73019481f3c13a5966e0cc8f5a9d.tar.gz
kernel_samsung_smdk4412-49c28e4e40be73019481f3c13a5966e0cc8f5a9d.tar.bz2
[PATCH] powerpc: Avoid __initcall warnings
Fix __initcall return in proc_rtas_init and rtas_init. Signed-off-by: Anton Blanchard <anton@samba.org> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/kernel/rtas-proc.c')
-rw-r--r--arch/powerpc/kernel/rtas-proc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/powerpc/kernel/rtas-proc.c b/arch/powerpc/kernel/rtas-proc.c
index 456286c..9c9ad1f 100644
--- a/arch/powerpc/kernel/rtas-proc.c
+++ b/arch/powerpc/kernel/rtas-proc.c
@@ -258,11 +258,11 @@ static int __init proc_rtas_init(void)
struct proc_dir_entry *entry;
if (!machine_is(pseries))
- return 1;
+ return -ENODEV;
rtas_node = of_find_node_by_name(NULL, "rtas");
if (rtas_node == NULL)
- return 1;
+ return -ENODEV;
entry = create_proc_entry("ppc64/rtas/progress", S_IRUGO|S_IWUSR, NULL);
if (entry)