[PATCH 7/7] soc: renesas: Convert to of_machine_get_match()

From: Geert Uytterhoeven

Date: Mon Mar 02 2026 - 11:34:05 EST


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@xxxxxxxxx>
---
This is an alternative solution to "[PATCH v2 8/9] soc: renesas: don't
access of_root directly"
https://lore.kernel.org/20260223-soc-of-root-v2-8-b45da45903c8@xxxxxxxxxxxxxxxx
---
drivers/soc/renesas/renesas-soc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/soc/renesas/renesas-soc.c b/drivers/soc/renesas/renesas-soc.c
index f6c41892fbe549e8..bcba01acf283003d 100644
--- a/drivers/soc/renesas/renesas-soc.c
+++ b/drivers/soc/renesas/renesas-soc.c
@@ -488,7 +488,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;

--
2.43.0