hc
2024-10-22 8ac6c7a54ed1b98d142dce24b11c6de6a1e239a5
kernel/drivers/clk/clk-si5351.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * clk-si5351.c: Silicon Laboratories Si5351A/B/C I2C Clock Generator
34 *
....@@ -6,14 +7,9 @@
67 *
78 * References:
89 * [1] "Si5351A/B/C Data Sheet"
9
- * http://www.silabs.com/Support%20Documents/TechnicalDocs/Si5351.pdf
10
+ * https://www.silabs.com/Support%20Documents/TechnicalDocs/Si5351.pdf
1011 * [2] "Manually Generating an Si5351 Register Map"
11
- * http://www.silabs.com/Support%20Documents/TechnicalDocs/AN619.pdf
12
- *
13
- * This program is free software; you can redistribute it and/or modify it
14
- * under the terms of the GNU General Public License as published by the
15
- * Free Software Foundation; either version 2 of the License, or (at your
16
- * option) any later version.
12
+ * https://www.silabs.com/Support%20Documents/TechnicalDocs/AN619.pdf
1713 */
1814
1915 #include <linux/module.h>
....@@ -1215,8 +1211,8 @@
12151211 /* per clkout properties */
12161212 for_each_child_of_node(np, child) {
12171213 if (of_property_read_u32(child, "reg", &num)) {
1218
- dev_err(&client->dev, "missing reg property of %s\n",
1219
- child->name);
1214
+ dev_err(&client->dev, "missing reg property of %pOFn\n",
1215
+ child);
12201216 goto put_child;
12211217 }
12221218
....@@ -1370,7 +1366,7 @@
13701366 enum si5351_variant variant = (enum si5351_variant)id->driver_data;
13711367 struct si5351_platform_data *pdata;
13721368 struct si5351_driver_data *drvdata;
1373
- struct clk_init_data init = {};
1369
+ struct clk_init_data init;
13741370 const char *parent_names[4];
13751371 u8 num_parents, num_clocks;
13761372 int ret, n;