clk: renesas: rzg2l: Use core->name for clock name
authorClaudiu Beznea <claudiu.beznea.uj@bp.renesas.com>
Tue, 12 Sep 2023 04:51:30 +0000 (07:51 +0300)
committerGeert Uytterhoeven <geert+renesas@glider.be>
Mon, 18 Sep 2023 08:05:00 +0000 (10:05 +0200)
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 <claudiu.beznea.uj@bp.renesas.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/r/20230912045157.177966-11-claudiu.beznea.uj@bp.renesas.com
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
drivers/clk/renesas/rzg2l-cpg.c

index 47f488387f33a13000442a166bc37e72fcffc9c2..a1e820d2eb9e070e7d8feb015ca845bfbd786b92 100644 (file)
@@ -265,7 +265,7 @@ rzg2l_cpg_sd_mux_clk_register(const struct cpg_core_clk *core,
        clk_hw_data->priv = priv;
        clk_hw_data->conf = core->conf;
 
-       init.name = GET_SHIFT(core->conf) ? "sd1" : "sd0";
+       init.name = core->name;
        init.ops = &rzg2l_cpg_sd_clk_mux_ops;
        init.flags = 0;
        init.num_parents = core->num_parents;