summaryrefslogtreecommitdiffstats
path: root/drivers/char/snsc.c
diff options
context:
space:
mode:
authorTony Luck <tony.luck@intel.com>2005-10-28 13:24:06 -0700
committerTony Luck <tony.luck@intel.com>2005-10-28 13:24:06 -0700
commita1e78db3f54d3481726ed2d3d58d8ad5b19b13d0 (patch)
tree5793f26d8787ee8462a0ac4316b4a07d7cfa04af /drivers/char/snsc.c
parentfbbb0bd1f6eb2d8b28d246a4821453bdc3d01b2f (diff)
parent59c422358d6573716f2bf2e78e5b12c20eff5a31 (diff)
Pull define-node-cleanup into release branch
Diffstat (limited to 'drivers/char/snsc.c')
-rw-r--r--drivers/char/snsc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/char/snsc.c b/drivers/char/snsc.c
index 261a41bf6d0..a025a89ea70 100644
--- a/drivers/char/snsc.c
+++ b/drivers/char/snsc.c
@@ -377,7 +377,7 @@ scdrv_init(void)
dev_t first_dev, dev;
nasid_t event_nasid = ia64_sn_get_console_nasid();
- if (alloc_chrdev_region(&first_dev, 0, numionodes,
+ if (alloc_chrdev_region(&first_dev, 0, num_cnodes,
SYSCTL_BASENAME) < 0) {
printk("%s: failed to register SN system controller device\n",
__FUNCTION__);
@@ -385,7 +385,7 @@ scdrv_init(void)
}
snsc_class = class_create(THIS_MODULE, SYSCTL_BASENAME);
- for (cnode = 0; cnode < numionodes; cnode++) {
+ for (cnode = 0; cnode < num_cnodes; cnode++) {
geoid = cnodeid_get_geoid(cnode);
devnamep = devname;
format_module_id(devnamep, geo_module(geoid),