|
@@ -123,6 +123,12 @@ static const struct dev_pm_ops atmel_trng_pm_ops = {
|
|
|
};
|
|
|
#endif /* CONFIG_PM */
|
|
|
|
|
|
+static const struct of_device_id atmel_trng_dt_ids[] = {
|
|
|
+ { .compatible = "atmel,at91sam9g45-trng" },
|
|
|
+ { /* sentinel */ }
|
|
|
+};
|
|
|
+MODULE_DEVICE_TABLE(of, atmel_trng_dt_ids);
|
|
|
+
|
|
|
static struct platform_driver atmel_trng_driver = {
|
|
|
.probe = atmel_trng_probe,
|
|
|
.remove = atmel_trng_remove,
|
|
@@ -132,6 +138,7 @@ static struct platform_driver atmel_trng_driver = {
|
|
|
#ifdef CONFIG_PM
|
|
|
.pm = &atmel_trng_pm_ops,
|
|
|
#endif /* CONFIG_PM */
|
|
|
+ .of_match_table = atmel_trng_dt_ids,
|
|
|
},
|
|
|
};
|
|
|
|