diff options
Diffstat (limited to 'arch/powerpc/boot/oflib.c')
-rw-r--r-- | arch/powerpc/boot/oflib.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/powerpc/boot/oflib.c b/arch/powerpc/boot/oflib.c index cdfe762d2b2b..46c98a47d949 100644 --- a/arch/powerpc/boot/oflib.c +++ b/arch/powerpc/boot/oflib.c | |||
@@ -27,11 +27,17 @@ struct prom_args { | |||
27 | __be32 args[10]; /* Input/output arguments. */ | 27 | __be32 args[10]; /* Input/output arguments. */ |
28 | }; | 28 | }; |
29 | 29 | ||
30 | #ifdef __powerpc64__ | ||
31 | extern int prom(void *); | ||
32 | #else | ||
30 | static int (*prom) (void *); | 33 | static int (*prom) (void *); |
34 | #endif | ||
31 | 35 | ||
32 | void of_init(void *promptr) | 36 | void of_init(void *promptr) |
33 | { | 37 | { |
38 | #ifndef __powerpc64__ | ||
34 | prom = (int (*)(void *))promptr; | 39 | prom = (int (*)(void *))promptr; |
40 | #endif | ||
35 | } | 41 | } |
36 | 42 | ||
37 | #define ADDR(x) (u32)(unsigned long)(x) | 43 | #define ADDR(x) (u32)(unsigned long)(x) |