diff options
| author | Geert Uytterhoeven <geert+renesas@glider.be> | 2026-09-03 11:59:06 +0200 |
|---|---|---|
| committer | Claudiu Beznea <claudiu.beznea@tuxon.dev> | 2026-09-20 16:26:50 +0300 |
| commit | b847099fdcc855b04b017a67bd6d3097ce277175 (patch) | |
| tree | 4f7b9874e0c9327e0a4adf4092bad84aa6cc4990 | |
| parent | b098cb3c3c9b98ba36241efd177ee572a856e37c (diff) | |
| download | linux-next-b847099fdcc855b04b017a67bd6d3097ce277175.tar.gz linux-next-b847099fdcc855b04b017a67bd6d3097ce277175.zip | |
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>
| -rw-r--r-- | drivers/soc/atmel/soc.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/soc/atmel/soc.c b/drivers/soc/atmel/soc.c index d89f9dcade7d..7e60c5681ad0 100644 --- a/drivers/soc/atmel/soc.c +++ b/drivers/soc/atmel/soc.c @@ -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); |
