hc
2024-05-10 61598093bbdd283a7edc367d900f223070ead8d2
kernel/drivers/clk/versatile/clk-versatile.c
....@@ -1,11 +1,8 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Clock driver for the ARM Integrator/AP, Integrator/CP, Versatile AB and
34 * Versatile PB boards.
45 * Copyright (C) 2012 Linus Walleij
5
- *
6
- * This program is free software; you can redistribute it and/or modify
7
- * it under the terms of the GNU General Public License version 2 as
8
- * published by the Free Software Foundation.
96 */
107 #include <linux/clk-provider.h>
118 #include <linux/err.h>
....@@ -59,7 +56,7 @@
5956 static void __init cm_osc_setup(struct device_node *np,
6057 const struct clk_icst_desc *desc)
6158 {
62
- struct clk *clk = ERR_PTR(-EINVAL);
59
+ struct clk *clk;
6360 const char *clk_name = np->name;
6461 const char *parent_name;
6562
....@@ -73,6 +70,7 @@
7370 return;
7471 }
7572 cm_base = of_iomap(parent, 0);
73
+ of_node_put(parent);
7674 if (!cm_base) {
7775 pr_err("could not remap core module base\n");
7876 return;