mirror of
https://github.com/torvalds/linux.git
synced 2026-11-06 21:58:01 +01:00
soc: atmel: Convert to of_machine_device_match()
Use the of_machine_device_match() helper instead of open-coding the same operation. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Reviewed-by: Claudiu Beznea <claudiu.beznea@tuxon.dev> Link: https://lore.kernel.org/r/c3b4f8aceb5f0bc95fa10e6fa469574cfdaa8ee6.1788429505.git.geert+renesas@glider.be Signed-off-by: Claudiu Beznea <claudiu.beznea@tuxon.dev>
This commit is contained in:
parent
b098cb3c3c
commit
b847099fdc
|
|
@ -404,9 +404,7 @@ static const struct of_device_id at91_soc_allowed_list[] __initconst = {
|
|||
|
||||
static int __init atmel_soc_device_init(void)
|
||||
{
|
||||
struct device_node *np __free(device_node) = of_find_node_by_path("/");
|
||||
|
||||
if (!of_match_node(at91_soc_allowed_list, np))
|
||||
if (!of_machine_device_match(at91_soc_allowed_list))
|
||||
return 0;
|
||||
|
||||
at91_soc_init(socs);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user