mirror of
https://github.com/torvalds/linux.git
synced 2026-07-27 17:47:41 +02:00
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:
parent
39abbc2f7a
commit
17e48e7e5f
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user