powerpc: Pass a valid token to rtas_call() in phyp-dump code
authorTony Breeds <tony@bakeyournoodle.com>
Mon, 15 Dec 2008 18:34:43 +0000 (18:34 +0000)
committerPaul Mackerras <paulus@samba.org>
Sun, 21 Dec 2008 03:21:15 +0000 (14:21 +1100)
ibm_configure_kernel_dump is passed as the token to rtas_call() is
never initialised.  This sets it to something sane.

Signed-off-by: Tony Breeds <tony@bakeyournoodle.com>
Acked-by: Nathan Lynch <ntl@pobox.com>
Acked-by: Manish Ahuja <mahujam@gmail.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/platforms/pseries/phyp_dump.c

index 16e659a714401bd4f284d1d2cac7ffc5ec28a121..6cf35cd8d0b50bd42478843941f696fb1aa9c4d6 100644 (file)
@@ -414,6 +414,8 @@ static int __init phyp_dump_setup(void)
                of_node_put(rtas);
        }
 
+       ibm_configure_kernel_dump = rtas_token("ibm,configure-kernel-dump");
+
        print_dump_header(dump_header);
        dump_area_length = init_dump_header(&phdr);
        /* align down */