| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * SCPI Generic power domain support. |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * 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/>. |
|---|
| 17 | 6 | */ |
|---|
| 18 | 7 | |
|---|
| 19 | 8 | #include <linux/err.h> |
|---|
| .. | .. |
|---|
| 121 | 110 | scpi_pd->domain = i; |
|---|
| 122 | 111 | scpi_pd->ops = scpi_ops; |
|---|
| 123 | 112 | scpi_pd->genpd.name = devm_kasprintf(dev, GFP_KERNEL, |
|---|
| 124 | | - "%s.%d", np->name, i); |
|---|
| 113 | + "%pOFn.%d", np, i); |
|---|
| 125 | 114 | 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); |
|---|
| 128 | 117 | continue; |
|---|
| 129 | 118 | } |
|---|
| 130 | 119 | scpi_pd->genpd.power_off = scpi_pd_power_off; |
|---|