forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-10 61598093bbdd283a7edc367d900f223070ead8d2
kernel/drivers/clk/mvebu/armada-37xx-tbg.c
....@@ -1,17 +1,15 @@
1
+// SPDX-License-Identifier: GPL-2.0+
12 /*
23 * Marvell Armada 37xx SoC Time Base Generator clocks
34 *
45 * Copyright (C) 2016 Marvell
56 *
67 * Gregory CLEMENT <gregory.clement@free-electrons.com>
7
- *
8
- * This file is licensed under the terms of the GNU General Public
9
- * License version 2 or later. This program is licensed "as is"
10
- * without any warranty of any kind, whether express or implied.
118 */
129
1310 #include <linux/clk-provider.h>
1411 #include <linux/clk.h>
12
+#include <linux/io.h>
1513 #include <linux/of.h>
1614 #include <linux/of_address.h>
1715 #include <linux/platform_device.h>
....@@ -99,12 +97,13 @@
9997 hw_tbg_data->num = NUM_TBG;
10098 platform_set_drvdata(pdev, hw_tbg_data);
10199
102
- parent = devm_clk_get(dev, NULL);
100
+ parent = clk_get(dev, NULL);
103101 if (IS_ERR(parent)) {
104102 dev_err(dev, "Could get the clock parent\n");
105103 return -EINVAL;
106104 }
107105 parent_name = __clk_get_name(parent);
106
+ clk_put(parent);
108107
109108 res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
110109 reg = devm_ioremap_resource(dev, res);