Thread (3 messages) 3 messages, 2 authors, 2021-05-11

[PATCH -next] EDAC: ti: Add missing MODULE_DEVICE_TABLE

STALE1969d

From: Bixuan Cui <hidden>
Date: 2021-05-08 01:51:48
Also in: kernel-janitors
Subsystem: edac-core, edac-ti, the rest · Maintainers: Borislav Petkov, Tony Luck, Tero Kristo, Linus Torvalds

This patch adds missing MODULE_DEVICE_TABLE definition which generates
correct modalias for automatic loading of this driver when it is built
as an external module.

Reported-by: Hulk Robot <redacted>
Signed-off-by: Bixuan Cui <redacted>
---
 drivers/edac/ti_edac.c | 1 +
 1 file changed, 1 insertion(+)
diff --git a/drivers/edac/ti_edac.c b/drivers/edac/ti_edac.c
index e7eae20f83d1..169f96e51c29 100644
--- a/drivers/edac/ti_edac.c
+++ b/drivers/edac/ti_edac.c
@@ -197,6 +197,7 @@ static const struct of_device_id ti_edac_of_match[] = {
 	{ .compatible = "ti,emif-dra7xx", .data = (void *)EMIF_TYPE_DRA7 },
 	{},
 };
+MODULE_DEVICE_TABLE(of, ti_edac_of_match);
 
 static int _emif_get_id(struct device_node *node)
 {
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help