Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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

authored by

Dmitry Baryshkov and committed by
Bjorn Andersson
867bc326 4409ef7d

+3 -1
+3 -1
drivers/clk/qcom/a53-pll.c
··· 127 127 if (!init.name) 128 128 return -ENOMEM; 129 129 130 - init.parent_names = (const char *[]){ "xo" }; 130 + init.parent_data = &(const struct clk_parent_data){ 131 + .fw_name = "xo", .name = "xo_board", 132 + }; 131 133 init.num_parents = 1; 132 134 init.ops = &clk_pll_sr2_ops; 133 135 pll->clkr.hw.init = &init;