[IA64] add platform check to snsc driver init
Add a platform check to the snsc driver init function, to prevent loading on non-sn2 systems. Signed-off-by: Greg Edwards <edwardsg@sgi.com> Signed-off-by: Tony Luck <tony.luck@intel.com>
This commit is contained in:
parent
e037cda559
commit
c7c17423b9
@ -374,7 +374,12 @@ scdrv_init(void)
|
|||||||
struct sysctl_data_s *scd;
|
struct sysctl_data_s *scd;
|
||||||
void *salbuf;
|
void *salbuf;
|
||||||
dev_t first_dev, dev;
|
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,
|
if (alloc_chrdev_region(&first_dev, 0, num_cnodes,
|
||||||
SYSCTL_BASENAME) < 0) {
|
SYSCTL_BASENAME) < 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user