]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
clk: renesas: rzv2h: Sort compatible list based on SoC part number
authorLad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Mon, 7 Apr 2025 19:16:23 +0000 (20:16 +0100)
committerGeert Uytterhoeven <geert+renesas@glider.be>
Mon, 14 Apr 2025 08:54:41 +0000 (10:54 +0200)
Reorder the compatible entries in `rzv2h_cpg_match[]` to follow a
numerical sequence based on the SoC part numbers.

Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/20250407191628.323613-8-prabhakar.mahadev-lad.rj@bp.renesas.com
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
drivers/clk/renesas/rzv2h-cpg.c

index 81aed6ba763722e30f54832bdb840691405cca55..7962466cd51ba05bc17e67e6e4d273165c6b30e2 100644 (file)
@@ -1014,17 +1014,17 @@ static int __init rzv2h_cpg_probe(struct platform_device *pdev)
 }
 
 static const struct of_device_id rzv2h_cpg_match[] = {
-#ifdef CONFIG_CLK_R9A09G057
-       {
-               .compatible = "renesas,r9a09g057-cpg",
-               .data = &r9a09g057_cpg_info,
-       },
-#endif
 #ifdef CONFIG_CLK_R9A09G047
        {
                .compatible = "renesas,r9a09g047-cpg",
                .data = &r9a09g047_cpg_info,
        },
+#endif
+#ifdef CONFIG_CLK_R9A09G057
+       {
+               .compatible = "renesas,r9a09g057-cpg",
+               .data = &r9a09g057_cpg_info,
+       },
 #endif
        { /* sentinel */ }
 };