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 156d029 commit caab13bCopy full SHA for caab13b
drivers/soc/atmel/soc.c
@@ -271,8 +271,20 @@ struct soc_device * __init at91_soc_init(const struct at91_soc *socs)
271
return soc_dev;
272
}
273
274
+static const struct of_device_id at91_soc_allowed_list[] __initconst = {
275
+ { .compatible = "atmel,at91rm9200", },
276
+ { .compatible = "atmel,at91sam9", },
277
+ { .compatible = "atmel,sama5", },
278
+ { .compatible = "atmel,samv7", }
279
+};
280
+
281
static int __init atmel_soc_device_init(void)
282
{
283
+ struct device_node *np = of_find_node_by_path("/");
284
285
+ if (!of_match_node(at91_soc_allowed_list, np))
286
+ return 0;
287
288
at91_soc_init(socs);
289
290
return 0;
0 commit comments