clk: qcom: clk-rpmh: Convert to parent data scheme

Convert the rpmh clock driver to use the new parent data scheme by
specifying the parent data for board clock.

Signed-off-by: Vinod Koul <vkoul@kernel.org>
Link: https://lkml.kernel.org/r/20190826173120.2971-3-vkoul@kernel.org
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
This commit is contained in:
Vinod Koul 2019-08-26 23:01:18 +05:30 committed by Stephen Boyd
parent 8c758d6675
commit a64a9e5172
1 changed files with 8 additions and 2 deletions

View File

@ -95,7 +95,10 @@ static DEFINE_MUTEX(rpmh_clk_lock);
.hw.init = &(struct clk_init_data){ \ .hw.init = &(struct clk_init_data){ \
.ops = &clk_rpmh_ops, \ .ops = &clk_rpmh_ops, \
.name = #_name, \ .name = #_name, \
.parent_names = (const char *[]){ "xo_board" }, \ .parent_data = &(const struct clk_parent_data){ \
.fw_name = "xo", \
.name = "xo_board", \
}, \
.num_parents = 1, \ .num_parents = 1, \
}, \ }, \
}; \ }; \
@ -110,7 +113,10 @@ static DEFINE_MUTEX(rpmh_clk_lock);
.hw.init = &(struct clk_init_data){ \ .hw.init = &(struct clk_init_data){ \
.ops = &clk_rpmh_ops, \ .ops = &clk_rpmh_ops, \
.name = #_name_active, \ .name = #_name_active, \
.parent_names = (const char *[]){ "xo_board" }, \ .parent_data = &(const struct clk_parent_data){ \
.fw_name = "xo", \
.name = "xo_board", \
}, \
.num_parents = 1, \ .num_parents = 1, \
}, \ }, \
} }