aboutsummaryrefslogtreecommitdiffstats
path: root/arch/ia64/sn/kernel/xpnet.c
diff options
context:
space:
mode:
authorDean Nelson <dcn@sgi.com>2005-09-08 11:46:58 -0400
committerTony Luck <tony.luck@intel.com>2005-09-08 16:53:09 -0400
commit408865ce4829376120489ac8011b72125453dcff (patch)
tree090ab8cabba6f08ac2b2487cc9210bf39c6a99ad /arch/ia64/sn/kernel/xpnet.c
parent087f902686beb6c02157c271e3fc95606dbdfdbf (diff)
[IA64] ensure XPC and XPNET are loaded on sn2 platforms only
These are SN2 only drivers. They should have platform checks to prevent them from doing evil stuff in GENERIC kernels. Signed-off-by: Martin Hicks <mort@sgi.com> Acked-by: Dean Nelson <dcn@sgi.com> Signed-off-by: Tony Luck <tony.luck@intel.com>
Diffstat (limited to 'arch/ia64/sn/kernel/xpnet.c')
-rw-r--r--arch/ia64/sn/kernel/xpnet.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/ia64/sn/kernel/xpnet.c b/arch/ia64/sn/kernel/xpnet.c
index 78c13d676fa6..d0c2c114a459 100644
--- a/arch/ia64/sn/kernel/xpnet.c
+++ b/arch/ia64/sn/kernel/xpnet.c
@@ -636,6 +636,10 @@ xpnet_init(void)
636 int result = -ENOMEM; 636 int result = -ENOMEM;
637 637
638 638
639 if (!ia64_platform_is("sn2")) {
640 return -ENODEV;
641 }
642
639 dev_info(xpnet, "registering network device %s\n", XPNET_DEVICE_NAME); 643 dev_info(xpnet, "registering network device %s\n", XPNET_DEVICE_NAME);
640 644
641 /* 645 /*