diff options
author | Dmitry Baryshkov <dmitry.baryshkov@linaro.org> | 2022-09-09 13:31:37 +0300 |
---|---|---|
committer | Bjorn Andersson <andersson@kernel.org> | 2022-09-13 16:49:15 -0500 |
commit | 867bc3269ee430f5c822967e7b5a37a0ca959443 (patch) | |
tree | c7334cef96623933dddd03d0e70ef83dac02a089 /drivers/clk/qcom/a53-pll.c | |
parent | 4409ef7d3c59050d42903b48ec318d35a79312cd (diff) |
clk: qcom: a53-pll: convert to use parent_data rather than parent_names
Change a53-pll driver to use clk_parent_data rather than always looking
up the xo clock in the system clock list.
Note, this change also switches the a53-pll from the global `xo' clock
to the `xo_board', the clock that is specified as the `xo' clock in the
DT file.
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20220909103137.3727830-1-dmitry.baryshkov@linaro.org
Diffstat (limited to 'drivers/clk/qcom/a53-pll.c')
-rw-r--r-- | drivers/clk/qcom/a53-pll.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/clk/qcom/a53-pll.c b/drivers/clk/qcom/a53-pll.c index 329d2c5356d8..f9c5e296dba2 100644 --- a/drivers/clk/qcom/a53-pll.c +++ b/drivers/clk/qcom/a53-pll.c @@ -127,7 +127,9 @@ static int qcom_a53pll_probe(struct platform_device *pdev) if (!init.name) return -ENOMEM; - init.parent_names = (const char *[]){ "xo" }; + init.parent_data = &(const struct clk_parent_data){ + .fw_name = "xo", .name = "xo_board", + }; init.num_parents = 1; init.ops = &clk_pll_sr2_ops; pll->clkr.hw.init = &init; |