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

clk: mvebu: Use of_clk_get_parent_name()

This reverts commit e79b202c632f24f49f2eb9459b88b5fd9e332263.

Now that we use of_clk_get() inside of_clk_get_parent_name() we
can safely use it here.

Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>

+1 -3
+1 -3
drivers/clk/mvebu/clk-cpu.c
··· 197 197 for_each_node_by_type(dn, "cpu") { 198 198 struct clk_init_data init; 199 199 struct clk *clk; 200 - struct clk *parent_clk; 201 200 char *clk_name = kzalloc(5, GFP_KERNEL); 202 201 int cpu, err; 203 202 ··· 208 209 goto bail_out; 209 210 210 211 sprintf(clk_name, "cpu%d", cpu); 211 - parent_clk = of_clk_get(node, 0); 212 212 213 - cpuclk[cpu].parent_name = __clk_get_name(parent_clk); 213 + cpuclk[cpu].parent_name = of_clk_get_parent_name(node, 0); 214 214 cpuclk[cpu].clk_name = clk_name; 215 215 cpuclk[cpu].cpu = cpu; 216 216 cpuclk[cpu].reg_base = clock_complex_base;