forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-10 61598093bbdd283a7edc367d900f223070ead8d2
kernel/drivers/clk/qcom/gcc-mdm9615.c
....@@ -1,16 +1,8 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Copyright (c) 2013-2014, The Linux Foundation. All rights reserved.
34 * Copyright (c) BayLibre, SAS.
45 * Author : Neil Armstrong <narmstrong@baylibre.com>
5
- *
6
- * This software is licensed under the terms of the GNU General Public
7
- * License version 2, as published by the Free Software Foundation, and
8
- * may be copied, distributed, and modified under those terms.
9
- *
10
- * This program is distributed in the hope that it will be useful,
11
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
- * GNU General Public License for more details.
146 */
157
168 #include <linux/kernel.h>
....@@ -66,7 +58,7 @@
6658 .enable_mask = BIT(0),
6759 .hw.init = &(struct clk_init_data){
6860 .name = "pll0_vote",
69
- .parent_names = (const char *[]){ "pll8" },
61
+ .parent_names = (const char *[]){ "pll0" },
7062 .num_parents = 1,
7163 .ops = &clk_pll_vote_ops,
7264 },
....@@ -1702,6 +1694,8 @@
17021694 .num_clks = ARRAY_SIZE(gcc_mdm9615_clks),
17031695 .resets = gcc_mdm9615_resets,
17041696 .num_resets = ARRAY_SIZE(gcc_mdm9615_resets),
1697
+ .clk_hws = gcc_mdm9615_hws,
1698
+ .num_clk_hws = ARRAY_SIZE(gcc_mdm9615_hws),
17051699 };
17061700
17071701 static const struct of_device_id gcc_mdm9615_match_table[] = {
....@@ -1712,20 +1706,11 @@
17121706
17131707 static int gcc_mdm9615_probe(struct platform_device *pdev)
17141708 {
1715
- struct device *dev = &pdev->dev;
17161709 struct regmap *regmap;
1717
- int ret;
1718
- int i;
17191710
17201711 regmap = qcom_cc_map(pdev, &gcc_mdm9615_desc);
17211712 if (IS_ERR(regmap))
17221713 return PTR_ERR(regmap);
1723
-
1724
- for (i = 0; i < ARRAY_SIZE(gcc_mdm9615_hws); i++) {
1725
- ret = devm_clk_hw_register(dev, gcc_mdm9615_hws[i]);
1726
- if (ret)
1727
- return ret;
1728
- }
17291714
17301715 return qcom_cc_really_probe(pdev, &gcc_mdm9615_desc, regmap);
17311716 }