.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * System Control and Power Interface (SCPI) Protocol based clock driver |
---|
3 | 4 | * |
---|
4 | 5 | * Copyright (C) 2015 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 with |
---|
16 | | - * this program. If not, see <http://www.gnu.org/licenses/>. |
---|
17 | 6 | */ |
---|
18 | 7 | |
---|
19 | 8 | #include <linux/clk-provider.h> |
---|
.. | .. |
---|
150 | 139 | scpi_clk_ops_init(struct device *dev, const struct of_device_id *match, |
---|
151 | 140 | struct scpi_clk *sclk, const char *name) |
---|
152 | 141 | { |
---|
153 | | - struct clk_init_data init = {}; |
---|
| 142 | + struct clk_init_data init; |
---|
154 | 143 | unsigned long min = 0, max = 0; |
---|
155 | 144 | int ret; |
---|
156 | 145 | |
---|
.. | .. |
---|
207 | 196 | |
---|
208 | 197 | count = of_property_count_strings(np, "clock-output-names"); |
---|
209 | 198 | if (count < 0) { |
---|
210 | | - dev_err(dev, "%s: invalid clock output count\n", np->name); |
---|
| 199 | + dev_err(dev, "%pOFn: invalid clock output count\n", np); |
---|
211 | 200 | return -EINVAL; |
---|
212 | 201 | } |
---|
213 | 202 | |
---|
.. | .. |
---|
232 | 221 | |
---|
233 | 222 | if (of_property_read_string_index(np, "clock-output-names", |
---|
234 | 223 | idx, &name)) { |
---|
235 | | - dev_err(dev, "invalid clock name @ %s\n", np->name); |
---|
| 224 | + dev_err(dev, "invalid clock name @ %pOFn\n", np); |
---|
236 | 225 | return -EINVAL; |
---|
237 | 226 | } |
---|
238 | 227 | |
---|
239 | 228 | if (of_property_read_u32_index(np, "clock-indices", |
---|
240 | 229 | idx, &val)) { |
---|
241 | | - dev_err(dev, "invalid clock index @ %s\n", np->name); |
---|
| 230 | + dev_err(dev, "invalid clock index @ %pOFn\n", np); |
---|
242 | 231 | return -EINVAL; |
---|
243 | 232 | } |
---|
244 | 233 | |
---|