提交 408865ce 编写于 作者: D Dean Nelson 提交者: Tony Luck

[IA64] ensure XPC and XPNET are loaded on sn2 platforms only

These are SN2 only drivers.  They should have platform checks to prevent
them from doing evil stuff in GENERIC kernels.
Signed-off-by: NMartin Hicks <mort@sgi.com>
Acked-by: NDean Nelson <dcn@sgi.com>
Signed-off-by: NTony Luck <tony.luck@intel.com>
上级 087f9026
无相关合并请求
......@@ -885,6 +885,10 @@ xpc_init(void)
pid_t pid;
if (!ia64_platform_is("sn2")) {
return -ENODEV;
}
/*
* xpc_remote_copy_buffer is used as a temporary buffer for bte_copy'ng
* both a partition's reserved page and its XPC variables. Its size was
......
......@@ -636,6 +636,10 @@ xpnet_init(void)
int result = -ENOMEM;
if (!ia64_platform_is("sn2")) {
return -ENODEV;
}
dev_info(xpnet, "registering network device %s\n", XPNET_DEVICE_NAME);
/*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册
新手
引导
客服 返回
顶部