summaryrefslogtreecommitdiff
path: root/arch/ia64/sn/kernel/mca.c
diff options
context:
space:
mode:
authorJes Sorensen <jes@sgi.com>2006-02-08 10:19:28 -0500
committerTony Luck <tony.luck@intel.com>2006-02-08 11:57:16 -0800
commitf478af9dc58c01880832a321c3eea7703772c420 (patch)
tree17890ca8be3629452259039bf4377868a9fff0b6 /arch/ia64/sn/kernel/mca.c
parentd6e56a2a088935f3c1feee5ff5a06c67f2ec6002 (diff)
[IA64] prevent sn2 specific code to be run in generic kernels
Prevent SN2 specific code to be executed on non SN2 platforms when running a generic kernel. Signed-off-by: Jes Sorensen <jes@sgi.com> Signed-off-by: Tony Luck <tony.luck@intel.com>
Diffstat (limited to 'arch/ia64/sn/kernel/mca.c')
-rw-r--r--arch/ia64/sn/kernel/mca.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/ia64/sn/kernel/mca.c b/arch/ia64/sn/kernel/mca.c
index 9ab684d1bb55..3db62f24596c 100644
--- a/arch/ia64/sn/kernel/mca.c
+++ b/arch/ia64/sn/kernel/mca.c
@@ -3,7 +3,7 @@
* License. See the file "COPYING" in the main directory of this archive
* for more details.
*
- * Copyright (c) 2000-2004 Silicon Graphics, Inc. All Rights Reserved.
+ * Copyright (c) 2000-2006 Silicon Graphics, Inc. All Rights Reserved.
*/
#include <linux/types.h>
@@ -137,7 +137,8 @@ int sn_salinfo_platform_oemdata(const u8 *sect_header, u8 **oemdata, u64 *oemdat
static int __init sn_salinfo_init(void)
{
- salinfo_platform_oemdata = &sn_salinfo_platform_oemdata;
+ if (ia64_platform_is("sn2"))
+ salinfo_platform_oemdata = &sn_salinfo_platform_oemdata;
return 0;
}