]> git.openfabrics.org - ~emulex/infiniband.git/commitdiff
voyager: use struct instead of PARAM
authorRandy Dunlap <randy.dunlap@oracle.com>
Sat, 10 Nov 2007 03:30:36 +0000 (04:30 +0100)
committerThomas Gleixner <tglx@apollo.(none)>
Sat, 10 Nov 2007 03:30:36 +0000 (04:30 +0100)
Use struct boot_params instead of PARAM + 0xoffsets.
Fixes one of many Voyager build problems.

arch/x86/kernel/setup_32.c:543: error: 'PARAM' undeclared (first use in this function)

Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Cc: James Bottomley <James.Bottomley@steeleye.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
include/asm-x86/mach-voyager/setup_arch.h

index 84d01ad334593a99083ec0dcc96873b10e3c611e..1710ae10eb6745b7e2eb5ff07ad5568be5d501e6 100644 (file)
@@ -1,5 +1,7 @@
 #include <asm/voyager.h>
-#define VOYAGER_BIOS_INFO ((struct voyager_bios_info *)(PARAM+0x40))
+#include <asm/setup_32.h>
+#define VOYAGER_BIOS_INFO ((struct voyager_bios_info *) \
+                       (&boot_params.apm_bios_info))
 
 /* Hook to call BIOS initialisation function */