forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-05 071106ecf68c401173c58808b1cf5f68cc50d390
kernel/drivers/misc/sgi-xp/xp_main.c
....@@ -3,6 +3,7 @@
33 * License. See the file "COPYING" in the main directory of this archive
44 * for more details.
55 *
6
+ * (C) Copyright 2020 Hewlett Packard Enterprise Development LP
67 * Copyright (c) 2004-2008 Silicon Graphics, Inc. All Rights Reserved.
78 */
89
....@@ -223,7 +224,7 @@
223224 }
224225 EXPORT_SYMBOL_GPL(xpc_disconnect);
225226
226
-int __init
227
+static int __init
227228 xp_init(void)
228229 {
229230 enum xp_retval ret;
....@@ -233,9 +234,7 @@
233234 for (ch_number = 0; ch_number < XPC_MAX_NCHANNELS; ch_number++)
234235 mutex_init(&xpc_registrations[ch_number].mutex);
235236
236
- if (is_shub())
237
- ret = xp_init_sn2();
238
- else if (is_uv())
237
+ if (is_uv_system())
239238 ret = xp_init_uv();
240239 else
241240 ret = 0;
....@@ -248,12 +247,10 @@
248247
249248 module_init(xp_init);
250249
251
-void __exit
250
+static void __exit
252251 xp_exit(void)
253252 {
254
- if (is_shub())
255
- xp_exit_sn2();
256
- else if (is_uv())
253
+ if (is_uv_system())
257254 xp_exit_uv();
258255 }
259256