Skip to contentSkip to conversation

EDAC: ti: Add missing MODULE_DEVICE_TABLE

PATCH Applied Bixuan Cui 2 participants 2 messages May 12, 2021 – May 14, 2021

Subsystems (3)
lore
Share & tools
lore

Bixuan Cui

author
#0 lore raw

PATCH v2 1/1 EDAC: ti: Add missing MODULE_DEVICE_TABLE

The module misses MODULE_DEVICE_TABLE() for of_device_id tables and thus never autoloads on ID matches.
Add the missing declarations.

---
Changes v2:
* Modify the commit message to make it more suitable.

 drivers/edac/ti_edac.c | 1 +
 1 file changed, 1 insertion(+)
drivers/edac/ti_edac.c +1 -0
index e7eae20f83d1..169f96e51c29 100644
@@ -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)
 {
Signature · 1 line
2.17.1
maintainer Applied
#1 lore raw
Quoted 19 lines · Bixuan Cui

The module misses MODULE_DEVICE_TABLE() for of_device_id tables and thus never autoloads on ID matches.
Add the missing declarations.

---
Changes v2:
* Modify the commit message to make it more suitable.

 drivers/edac/ti_edac.c | 1 +
 1 file changed, 1 insertion(+)
drivers/edac/ti_edac.c +0 -0
index e7eae20f83d1..169f96e51c29 100644

drivers/edac/ti_edac.c static const struct of_device_id ti_edac_of_match[] = { · line 203

Quoted 7 lines
drivers/edac/ti_edac.c +1 -0
@@ -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)
 {

Applied, thanks.

Signature · 4 lines
Regards/Gruss,
    Boris.

https://people.kernel.org/tglx/notes-about-netiquette