Skip to contentSkip to conversation

sparc: Correct comments about prom_init() return values

PATCH Applied Geert Uytterhoeven 2 participants 4 messages Jun 20, 2012 – Jun 27, 2012 SPARC + UltraSPARC (sparc/sparc64)

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 sparc: Correct comments about prom_init() return values

prom_init() returns void.

---
 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
index 26c64ce..a8d9342 100644
@@ -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
index 5016c5e..d95db75 100644
@@ -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
#1 lore raw

PATCH 2/2 sparc32: Remove superfluous extern declarations for prom_*() functions

prom_meminit() and prom_ranges_init() are declared in <asm/oplib_32.h>.

--
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
index a8d9342..9ac30c2 100644
@@ -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