summaryrefslogtreecommitdiffstats
path: root/drivers/char
diff options
context:
space:
mode:
authorLinus Torvalds2006-08-03 21:50:20 +0200
committerLinus Torvalds2006-08-03 21:50:20 +0200
commitc31ca59e25f82879644088c97fe9cffbaa292786 (patch)
treeeb1652fb3fe83d5aa2c943ec4e072ec6d775e424 /drivers/char
parentIB/uverbs: Avoid a crash on device hot remove (diff)
parent[IA64] fix show_mem for VIRTUAL_MEM_MAP+FLATMEM (diff)
downloadkernel-qcow2-linux-c31ca59e25f82879644088c97fe9cffbaa292786.tar.gz
kernel-qcow2-linux-c31ca59e25f82879644088c97fe9cffbaa292786.tar.xz
kernel-qcow2-linux-c31ca59e25f82879644088c97fe9cffbaa292786.zip
Merge branch 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/aegl/linux-2.6
* 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/aegl/linux-2.6: [IA64] fix show_mem for VIRTUAL_MEM_MAP+FLATMEM [IA64] align high endpoint of VIRTUAL_MEM_MAP [PATCH] Fix RAID5 + IA64 compile [IA64] Don't alloc empty frame in ia64_switch_mode_phys [IA64] Do not assume output registers be reservered. [IA64] add platform check to snsc driver init [IA64] sparse cleanups [IA64] Fix breakage in simscsi.c [IA64] Format /proc/pal/*/version_info correctly
Diffstat (limited to 'drivers/char')
-rw-r--r--drivers/char/snsc.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/char/snsc.c b/drivers/char/snsc.c
index afc6eda602f7..07e0b75f2338 100644
--- a/drivers/char/snsc.c
+++ b/drivers/char/snsc.c
@@ -374,7 +374,12 @@ scdrv_init(void)
struct sysctl_data_s *scd;
void *salbuf;
dev_t first_dev, dev;
- nasid_t event_nasid = ia64_sn_get_console_nasid();
+ nasid_t event_nasid;
+
+ if (!ia64_platform_is("sn2"))
+ return -ENODEV;
+
+ event_nasid = ia64_sn_get_console_nasid();
if (alloc_chrdev_region(&first_dev, 0, num_cnodes,
SYSCTL_BASENAME) < 0) {