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 2cec5c17fb60..8fb42b63ec53 100644 --- a/arch/powerpc/boot/of.c +++ b/arch/powerpc/boot/of.c | |||
@@ -282,6 +282,8 @@ void platform_init(unsigned long a1, unsigned long a2, void *promptr) | |||
282 | 282 | ||
283 | prom = (int (*)(void *))promptr; | 283 | prom = (int (*)(void *))promptr; |
284 | loader_info.promptr = promptr; | 284 | loader_info.promptr = promptr; |
285 | loader_info.initrd_addr = a1; | 285 | if (a1 && a2 && a2 != 0xdeadbeef) { |
286 | loader_info.initrd_size = a2; | 286 | loader_info.initrd_addr = a1; |
287 | loader_info.initrd_size = a2; | ||
288 | } | ||
287 | } | 289 | } |