We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 668fd82 commit 6a357c5Copy full SHA for 6a357c5
drivers/soc/atmel/soc.c
@@ -264,8 +264,20 @@ struct soc_device * __init at91_soc_init(const struct at91_soc *socs)
264
return soc_dev;
265
}
266
267
+static const struct of_device_id at91_soc_allowed_list[] __initconst = {
268
+ { .compatible = "atmel,at91rm9200", },
269
+ { .compatible = "atmel,at91sam9", },
270
+ { .compatible = "atmel,sama5", },
271
+ { .compatible = "atmel,samv7", }
272
+};
273
+
274
static int __init atmel_soc_device_init(void)
275
{
276
+ struct device_node *np = of_find_node_by_path("/");
277
278
+ if (!of_match_node(at91_soc_allowed_list, np))
279
+ return 0;
280
281
at91_soc_init(socs);
282
283
return 0;
0 commit comments