| .. | .. |
|---|
| 3 | 3 | * License. See the file "COPYING" in the main directory of this archive |
|---|
| 4 | 4 | * for more details. |
|---|
| 5 | 5 | * |
|---|
| 6 | + * (C) Copyright 2020 Hewlett Packard Enterprise Development LP |
|---|
| 6 | 7 | * Copyright (c) 2004-2008 Silicon Graphics, Inc. All Rights Reserved. |
|---|
| 7 | 8 | */ |
|---|
| 8 | 9 | |
|---|
| .. | .. |
|---|
| 223 | 224 | } |
|---|
| 224 | 225 | EXPORT_SYMBOL_GPL(xpc_disconnect); |
|---|
| 225 | 226 | |
|---|
| 226 | | -int __init |
|---|
| 227 | +static int __init |
|---|
| 227 | 228 | xp_init(void) |
|---|
| 228 | 229 | { |
|---|
| 229 | 230 | enum xp_retval ret; |
|---|
| .. | .. |
|---|
| 233 | 234 | for (ch_number = 0; ch_number < XPC_MAX_NCHANNELS; ch_number++) |
|---|
| 234 | 235 | mutex_init(&xpc_registrations[ch_number].mutex); |
|---|
| 235 | 236 | |
|---|
| 236 | | - if (is_shub()) |
|---|
| 237 | | - ret = xp_init_sn2(); |
|---|
| 238 | | - else if (is_uv()) |
|---|
| 237 | + if (is_uv_system()) |
|---|
| 239 | 238 | ret = xp_init_uv(); |
|---|
| 240 | 239 | else |
|---|
| 241 | 240 | ret = 0; |
|---|
| .. | .. |
|---|
| 248 | 247 | |
|---|
| 249 | 248 | module_init(xp_init); |
|---|
| 250 | 249 | |
|---|
| 251 | | -void __exit |
|---|
| 250 | +static void __exit |
|---|
| 252 | 251 | xp_exit(void) |
|---|
| 253 | 252 | { |
|---|
| 254 | | - if (is_shub()) |
|---|
| 255 | | - xp_exit_sn2(); |
|---|
| 256 | | - else if (is_uv()) |
|---|
| 253 | + if (is_uv_system()) |
|---|
| 257 | 254 | xp_exit_uv(); |
|---|
| 258 | 255 | } |
|---|
| 259 | 256 | |
|---|