]> nv-tegra.nvidia Code Review - linux-2.6.git/commitdiff
Pull define-node-cleanup into release branch
authorTony Luck <tony.luck@intel.com>
Fri, 28 Oct 2005 20:24:06 +0000 (13:24 -0700)
committerTony Luck <tony.luck@intel.com>
Fri, 28 Oct 2005 20:24:06 +0000 (13:24 -0700)
1  2 
arch/ia64/sn/kernel/tiocx.c
include/asm-ia64/sn/io.h
include/asm-ia64/sn/sn_sal.h

index e0819ec53116bfc477edd4e3ce46f4b2629415da,7e9764a69dc8dc41fa6ae539acdaa44f3f5ef4a6..0d8592a745a7bd774b859cc5fa3d6f179ef643a6
@@@ -489,14 -486,12 +489,13 @@@ static int __init tiocx_init(void
  
        bus_register(&tiocx_bus_type);
  
-       for (cnodeid = 0; cnodeid < MAX_COMPACT_NODES; cnodeid++) {
+       for (cnodeid = 0; cnodeid < num_cnodes; cnodeid++) {
                nasid_t nasid;
 +              int bt;
  
-               if ((nasid = cnodeid_to_nasid(cnodeid)) < 0)
-                       break;  /* No more nasids .. bail out of loop */
+               nasid = cnodeid_to_nasid(cnodeid);
  
 -              if ((nasid & 0x1) && is_fpga_brick(nasid)) {
 +              if ((nasid & 0x1) && is_fpga_tio(nasid, &bt)) {
                        struct hubdev_info *hubdev;
                        struct xwidget_info *widgetp;
  
Simple merge
Simple merge