Skip to content

Commit 6808965

Browse files
claudiubezneaarndb
authored andcommitted
drivers: soc: atmel: add null entry at the end of at91_soc_allowed_list[]
of_match_node() calls __of_match_node() which loops though the entries of matches array. It stops when condition: (matches->name[0] || matches->type[0] || matches->compatible[0]) is false. Thus, add a null entry at the end of at91_soc_allowed_list[] array. Fixes: caab13b ("drivers: soc: atmel: Avoid calling at91_soc_init on non AT91 SoCs") Cc: [email protected] #4.12+ Signed-off-by: Claudiu Beznea <[email protected]> Signed-off-by: Arnd Bergmann <[email protected]>
1 parent caab13b commit 6808965

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/soc/atmel/soc.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,8 @@ static const struct of_device_id at91_soc_allowed_list[] __initconst = {
275275
{ .compatible = "atmel,at91rm9200", },
276276
{ .compatible = "atmel,at91sam9", },
277277
{ .compatible = "atmel,sama5", },
278-
{ .compatible = "atmel,samv7", }
278+
{ .compatible = "atmel,samv7", },
279+
{ }
279280
};
280281

281282
static int __init atmel_soc_device_init(void)

0 commit comments

Comments
 (0)