| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * PowerNV OPAL Power-Shift-Ratio interface |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * 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. |
|---|
| 10 | 6 | */ |
|---|
| 11 | 7 | |
|---|
| 12 | 8 | #define pr_fmt(fmt) "opal-psr: " fmt |
|---|
| .. | .. |
|---|
| 17 | 13 | |
|---|
| 18 | 14 | #include <asm/opal.h> |
|---|
| 19 | 15 | |
|---|
| 20 | | -DEFINE_MUTEX(psr_mutex); |
|---|
| 16 | +static DEFINE_MUTEX(psr_mutex); |
|---|
| 21 | 17 | |
|---|
| 22 | 18 | static struct kobject *psr_kobj; |
|---|
| 23 | 19 | |
|---|
| 24 | | -struct psr_attr { |
|---|
| 20 | +static struct psr_attr { |
|---|
| 25 | 21 | u32 handle; |
|---|
| 26 | 22 | struct kobj_attribute attr; |
|---|
| 27 | 23 | } *psr_attrs; |
|---|