Skip to content

Commit 17939df

Browse files
claudiubezneageertu
authored andcommitted
clk: renesas: rzg2l: Use core->name for clock name
core->name already contains the clock name thus, there is no need to check the GET_SHIFT(core->conf) to decide on it. Signed-off-by: Claudiu Beznea <[email protected]> Reviewed-by: Geert Uytterhoeven <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Geert Uytterhoeven <[email protected]>
1 parent f3ea14c commit 17939df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/clk/renesas/rzg2l-cpg.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ rzg2l_cpg_sd_mux_clk_register(const struct cpg_core_clk *core,
265265
clk_hw_data->priv = priv;
266266
clk_hw_data->conf = core->conf;
267267

268-
init.name = GET_SHIFT(core->conf) ? "sd1" : "sd0";
268+
init.name = core->name;
269269
init.ops = &rzg2l_cpg_sd_clk_mux_ops;
270270
init.flags = 0;
271271
init.num_parents = core->num_parents;

0 commit comments

Comments
 (0)