20e7440ace88ec56d2e607d1b895897a8a3b8e06
[openwrt/openwrt.git] / target / linux / ipq806x / patches-6.1 / 123-clk-qcom-gcc-ipq806x-remove-cc_register_board-for.patch
1 From ac84ac819a2e8fd3d87122b452c502a386c54437 Mon Sep 17 00:00:00 2001
2 From: Christian Marangi <ansuelsmth@gmail.com>
3 Date: Tue, 5 Jul 2022 18:30:18 +0200
4 Subject: [PATCH v2 4/4] clk: qcom: gcc-ipq806x: remove cc_register_board for
5 pxo and cxo
6
7 Now that these clock are defined as fixed clk in dts, we can drop the
8 register_board_clk for cxo_board and pxo_board in gcc_ipq806x_probe.
9
10 Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
11 ---
12 drivers/clk/qcom/gcc-ipq806x.c | 8 --------
13 1 file changed, 8 deletions(-)
14
15 --- a/drivers/clk/qcom/gcc-ipq806x.c
16 +++ b/drivers/clk/qcom/gcc-ipq806x.c
17 @@ -3384,14 +3384,6 @@ static int gcc_ipq806x_probe(struct plat
18 struct regmap *regmap;
19 int ret;
20
21 - ret = qcom_cc_register_board_clk(dev, "cxo_board", "cxo", 25000000);
22 - if (ret)
23 - return ret;
24 -
25 - ret = qcom_cc_register_board_clk(dev, "pxo_board", "pxo", 25000000);
26 - if (ret)
27 - return ret;
28 -
29 if (of_machine_is_compatible("qcom,ipq8065")) {
30 ubi32_core1_src_clk.freq_tbl = clk_tbl_nss_ipq8065;
31 ubi32_core2_src_clk.freq_tbl = clk_tbl_nss_ipq8065;