forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-09 958e46acc8e900e8569dd467c1af9b8d2d019394
kernel/arch/powerpc/platforms/powernv/opal-psr.c
....@@ -1,12 +1,8 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * PowerNV OPAL Power-Shift-Ratio interface
34 *
45 * Copyright 2017 IBM Corp.
5
- *
6
- * This program is free software; you can redistribute it and/or
7
- * modify it under the terms of the GNU General Public License
8
- * as published by the Free Software Foundation; either version
9
- * 2 of the License, or (at your option) any later version.
106 */
117
128 #define pr_fmt(fmt) "opal-psr: " fmt
....@@ -17,11 +13,11 @@
1713
1814 #include <asm/opal.h>
1915
20
-DEFINE_MUTEX(psr_mutex);
16
+static DEFINE_MUTEX(psr_mutex);
2117
2218 static struct kobject *psr_kobj;
2319
24
-struct psr_attr {
20
+static struct psr_attr {
2521 u32 handle;
2622 struct kobj_attribute attr;
2723 } *psr_attrs;