]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
soc: renesas: Convert to of_machine_get_match()
authorGeert Uytterhoeven <geert+renesas@glider.be>
Mon, 2 Mar 2026 16:29:11 +0000 (17:29 +0100)
committerGeert Uytterhoeven <geert+renesas@glider.be>
Mon, 11 May 2026 07:56:17 +0000 (09:56 +0200)
Use the of_machine_get_match() helper to avoid accessing of_root
directly, which is planned to become private.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Link: https://patch.msgid.link/10876b30a8bdb7d1cfcc2f23fb859f2ffea335fe.1772468323.git.geert+renesas@glider.be
drivers/soc/renesas/renesas-soc.c

index 60b09020c935e2667db4ca8605f4434e67218a46..dedb2a0be58644e688b4b769d1fd52b45c6ddb69 100644 (file)
@@ -474,7 +474,7 @@ static int __init renesas_soc_init(void)
        const char *soc_id;
        int ret;
 
-       match = of_match_node(renesas_socs, of_root);
+       match = of_machine_get_match(renesas_socs);
        if (!match)
                return -ENODEV;