diff options
Diffstat (limited to 'arch/powerpc/boot/of.c')
-rw-r--r-- | arch/powerpc/boot/of.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/arch/powerpc/boot/of.c b/arch/powerpc/boot/of.c index 044f34770b96..c6f0d9701485 100644 --- a/arch/powerpc/boot/of.c +++ b/arch/powerpc/boot/of.c | |||
@@ -267,7 +267,7 @@ static void of_console_write(char *buf, int len) | |||
267 | call_prom("write", 3, 1, of_stdout_handle, buf, len); | 267 | call_prom("write", 3, 1, of_stdout_handle, buf, len); |
268 | } | 268 | } |
269 | 269 | ||
270 | int platform_init(void *promptr, char *dt_blob_start, char *dt_blob_end) | 270 | void platform_init(unsigned long a1, unsigned long a2, void *promptr) |
271 | { | 271 | { |
272 | platform_ops.image_hdr = of_image_hdr; | 272 | platform_ops.image_hdr = of_image_hdr; |
273 | platform_ops.malloc = of_try_claim; | 273 | platform_ops.malloc = of_try_claim; |
@@ -282,5 +282,7 @@ int platform_init(void *promptr, char *dt_blob_start, char *dt_blob_end) | |||
282 | console_ops.write = of_console_write; | 282 | console_ops.write = of_console_write; |
283 | 283 | ||
284 | prom = (int (*)(void *))promptr; | 284 | prom = (int (*)(void *))promptr; |
285 | return 0; | 285 | loader_info.promptr = promptr; |
286 | loader_info.initrd_addr = a1; | ||
287 | loader_info.initrd_size = a2; | ||
286 | } | 288 | } |