sparc: Clean arch-specific code in prom_common.c
commit47cd5265ea8fe0b246bfd9b42ba69e13aa8b99bd
authorJulian Calaby <julian.calaby@gmail.com>
Mon, 5 Jan 2009 08:07:18 +0000 (5 00:07 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 5 Jan 2009 08:07:18 +0000 (5 00:07 -0800)
tree3c413ded05253219d50b6ce9871e19d3bf2a259f
parent192eee8ef535cfdbdd0c93390e34f27ad7c02084
sparc: Clean arch-specific code in prom_common.c

prom_nextprop() and prom_firstprop() have slightly different calling
conventions in 32 and 64 bit SPARC.

prom_common.c uses a ifdef guard to ensure that these functions are
called correctly.

Adjust code to eliminate this ifdef by using a calling convention that
is compatible with both 32 and 64 bit SPARC.

Signed-off-by: Julian Calaby <julian.calaby@gmail.com>
Reviewed-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/kernel/prom_common.c