sparc: Correct comments about prom_init() return values
PATCH 1/2 sparc: Correct comments about prom_init() return values
prom_init() returns void.
Signed-off-by Geert Uytterhoeven <[email protected]>
--- arch/sparc/prom/init_32.c | 4 ++-- arch/sparc/prom/init_64.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-)
arch/sparc/prom/init_32.c +2 -2
@@ -27,8 +27,8 @@ EXPORT_SYMBOL(prom_root_node);struct linux_nodeops *prom_nodeops;/* You must call prom_init() before you attempt to use any of the -* routines in the prom library. It returns 0 on success, 1 on -* failure. It gets passed the pointer to the PROM vector. +* routines in the prom library. +* It gets passed the pointer to the PROM vector. */ extern void prom_meminit (void );
arch/sparc/prom/init_64.c +2 -2
@@ -22,8 +22,8 @@ int prom_stdout;phandle prom_chosen_node;/* You must call prom_init() before you attempt to use any of the -* routines in the prom library. It returns 0 on success, 1 on -* failure. It gets passed the pointer to the PROM vector. +* routines in the prom library. +* It gets passed the pointer to the PROM vector. */ extern void prom_cif_init (void *,void *);
Signature · 1 line
1.7.0.4
PATCH 2/2 sparc32: Remove superfluous extern declarations for prom_*() functions
prom_meminit() and prom_ranges_init() are declared in <asm/oplib_32.h>.
Signed-off-by Geert Uytterhoeven <[email protected]>
--
Not even compile-tested
arch/sparc/prom/init_32.c | 3 --- 1 files changed, 0 insertions(+), 3 deletions(-)
arch/sparc/prom/init_32.c +0 -3
@@ -31,9 +31,6 @@ struct linux_nodeops *prom_nodeops;* It gets passed the pointer to the PROM vector. */ -extern void prom_meminit (void ); -extern void prom_ranges_init (void ); -void __init prom_init (struct linux_romvec *rp) { romvec = rp;
Signature · 1 line
1.7.0.4
From: Geert Uytterhoeven <[email protected]>
Date: Wed, 20 Jun 2012 18:58:06 +0200
Quoted 3 lines
prom_init()returns void.Signed-off-by Geert Uytterhoeven <[email protected]>
Applied.
Re: [PATCH 2/2] sparc32: Remove superfluous extern declarations for prom_*() functions
In reply to Geert UytterhoevenFrom: Geert Uytterhoeven <[email protected]>
Date: Wed, 20 Jun 2012 18:58:07 +0200
Quoted 3 lines
prom_meminit()andprom_ranges_init()are declared in <asm/oplib_32.h>.Signed-off-by Geert Uytterhoeven <[email protected]>
Applied.