diff options
Diffstat (limited to 'drivers/char/snsc.c')
-rw-r--r-- | drivers/char/snsc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/char/snsc.c b/drivers/char/snsc.c index 261a41bf6d02..0e7d216e7eb0 100644 --- a/drivers/char/snsc.c +++ b/drivers/char/snsc.c | |||
@@ -377,7 +377,7 @@ scdrv_init(void) | |||
377 | dev_t first_dev, dev; | 377 | dev_t first_dev, dev; |
378 | nasid_t event_nasid = ia64_sn_get_console_nasid(); | 378 | nasid_t event_nasid = ia64_sn_get_console_nasid(); |
379 | 379 | ||
380 | if (alloc_chrdev_region(&first_dev, 0, numionodes, | 380 | if (alloc_chrdev_region(&first_dev, 0, num_cnodes, |
381 | SYSCTL_BASENAME) < 0) { | 381 | SYSCTL_BASENAME) < 0) { |
382 | printk("%s: failed to register SN system controller device\n", | 382 | printk("%s: failed to register SN system controller device\n", |
383 | __FUNCTION__); | 383 | __FUNCTION__); |
@@ -385,7 +385,7 @@ scdrv_init(void) | |||
385 | } | 385 | } |
386 | snsc_class = class_create(THIS_MODULE, SYSCTL_BASENAME); | 386 | snsc_class = class_create(THIS_MODULE, SYSCTL_BASENAME); |
387 | 387 | ||
388 | for (cnode = 0; cnode < numionodes; cnode++) { | 388 | for (cnode = 0; cnode < num_cnodes; cnode++) { |
389 | geoid = cnodeid_get_geoid(cnode); | 389 | geoid = cnodeid_get_geoid(cnode); |
390 | devnamep = devname; | 390 | devnamep = devname; |
391 | format_module_id(devnamep, geo_module(geoid), | 391 | format_module_id(devnamep, geo_module(geoid), |
@@ -437,7 +437,7 @@ scdrv_init(void) | |||
437 | continue; | 437 | continue; |
438 | } | 438 | } |
439 | 439 | ||
440 | class_device_create(snsc_class, dev, NULL, | 440 | class_device_create(snsc_class, NULL, dev, NULL, |
441 | "%s", devname); | 441 | "%s", devname); |
442 | 442 | ||
443 | ia64_sn_irtr_intr_enable(scd->scd_nasid, | 443 | ia64_sn_irtr_intr_enable(scd->scd_nasid, |