soc: renesas: Convert to of_machine_get_match()

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
This commit is contained in:
Geert Uytterhoeven 2026-03-02 17:29:11 +01:00
parent 39abbc2f7a
commit 17e48e7e5f

View 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;