diff options
Diffstat (limited to 'arch/ia64/sn/kernel/tiocx.c')
-rw-r--r-- | arch/ia64/sn/kernel/tiocx.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/ia64/sn/kernel/tiocx.c b/arch/ia64/sn/kernel/tiocx.c index 8716f4d5314b..c1cbcd1a1398 100644 --- a/arch/ia64/sn/kernel/tiocx.c +++ b/arch/ia64/sn/kernel/tiocx.c | |||
@@ -14,6 +14,7 @@ | |||
14 | #include <linux/proc_fs.h> | 14 | #include <linux/proc_fs.h> |
15 | #include <linux/device.h> | 15 | #include <linux/device.h> |
16 | #include <linux/delay.h> | 16 | #include <linux/delay.h> |
17 | #include <asm/system.h> | ||
17 | #include <asm/uaccess.h> | 18 | #include <asm/uaccess.h> |
18 | #include <asm/sn/sn_sal.h> | 19 | #include <asm/sn/sn_sal.h> |
19 | #include <asm/sn/addrs.h> | 20 | #include <asm/sn/addrs.h> |
@@ -481,6 +482,9 @@ static int __init tiocx_init(void) | |||
481 | cnodeid_t cnodeid; | 482 | cnodeid_t cnodeid; |
482 | int found_tiocx_device = 0; | 483 | int found_tiocx_device = 0; |
483 | 484 | ||
485 | if (!ia64_platform_is("sn2")) | ||
486 | return -ENODEV; | ||
487 | |||
484 | bus_register(&tiocx_bus_type); | 488 | bus_register(&tiocx_bus_type); |
485 | 489 | ||
486 | for (cnodeid = 0; cnodeid < MAX_COMPACT_NODES; cnodeid++) { | 490 | for (cnodeid = 0; cnodeid < MAX_COMPACT_NODES; cnodeid++) { |