Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 408865ce authored by Dean Nelson's avatar Dean Nelson Committed by Tony Luck
Browse files

[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: default avatarMartin Hicks <mort@sgi.com>
Acked-by: default avatarDean Nelson <dcn@sgi.com>
Signed-off-by: default avatarTony Luck <tony.luck@intel.com>
parent 087f9026
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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
+4 −0
Original line number Diff line number Diff line
@@ -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);

	/*