hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/drivers/firmware/scpi_pm_domain.c
....@@ -1,19 +1,8 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * SCPI Generic power domain support.
34 *
45 * Copyright (C) 2016 ARM Ltd.
5
- *
6
- * This program is free software; you can redistribute it and/or modify it
7
- * under the terms and conditions of the GNU General Public License,
8
- * version 2, as published by the Free Software Foundation.
9
- *
10
- * This program is distributed in the hope it will be useful, but WITHOUT
11
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
13
- * more details.
14
- *
15
- * You should have received a copy of the GNU General Public License along
16
- * with this program. If not, see <http://www.gnu.org/licenses/>.
176 */
187
198 #include <linux/err.h>
....@@ -121,10 +110,10 @@
121110 scpi_pd->domain = i;
122111 scpi_pd->ops = scpi_ops;
123112 scpi_pd->genpd.name = devm_kasprintf(dev, GFP_KERNEL,
124
- "%s.%d", np->name, i);
113
+ "%pOFn.%d", np, i);
125114 if (!scpi_pd->genpd.name) {
126
- dev_err(dev, "Failed to allocate genpd name:%s.%d\n",
127
- np->name, i);
115
+ dev_err(dev, "Failed to allocate genpd name:%pOFn.%d\n",
116
+ np, i);
128117 continue;
129118 }
130119 scpi_pd->genpd.power_off = scpi_pd_power_off;