aboutsummaryrefslogtreecommitdiffstats
path: root/arch/ia64/sn/kernel/tiocx.c
diff options
context:
space:
mode:
authorTony Luck <tony.luck@intel.com>2005-10-28 16:24:06 -0400
committerTony Luck <tony.luck@intel.com>2005-10-28 16:24:06 -0400
commita1e78db3f54d3481726ed2d3d58d8ad5b19b13d0 (patch)
tree5793f26d8787ee8462a0ac4316b4a07d7cfa04af /arch/ia64/sn/kernel/tiocx.c
parentfbbb0bd1f6eb2d8b28d246a4821453bdc3d01b2f (diff)
parent59c422358d6573716f2bf2e78e5b12c20eff5a31 (diff)
Pull define-node-cleanup into release branch
Diffstat (limited to 'arch/ia64/sn/kernel/tiocx.c')
-rw-r--r--arch/ia64/sn/kernel/tiocx.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/ia64/sn/kernel/tiocx.c b/arch/ia64/sn/kernel/tiocx.c
index e0819ec53116..0d8592a745a7 100644
--- a/arch/ia64/sn/kernel/tiocx.c
+++ b/arch/ia64/sn/kernel/tiocx.c
@@ -489,12 +489,11 @@ static int __init tiocx_init(void)
489 489
490 bus_register(&tiocx_bus_type); 490 bus_register(&tiocx_bus_type);
491 491
492 for (cnodeid = 0; cnodeid < MAX_COMPACT_NODES; cnodeid++) { 492 for (cnodeid = 0; cnodeid < num_cnodes; cnodeid++) {
493 nasid_t nasid; 493 nasid_t nasid;
494 int bt; 494 int bt;
495 495
496 if ((nasid = cnodeid_to_nasid(cnodeid)) < 0) 496 nasid = cnodeid_to_nasid(cnodeid);
497 break; /* No more nasids .. bail out of loop */
498 497
499 if ((nasid & 0x1) && is_fpga_tio(nasid, &bt)) { 498 if ((nasid & 0x1) && is_fpga_tio(nasid, &bt)) {
500 struct hubdev_info *hubdev; 499 struct hubdev_info *hubdev;