Skip to contentSkip to conversation

ppc4xx_edac: Fix module autoload for OF platform driver

PATCH Applied Luis de Bethencourt 3 participants 3 messages Sep 17, 2015 – Oct 3, 2015 EDAC-core

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ppc4xx_edac: Fix module autoload for OF platform driver

This platform driver has a OF device ID table but the OF module alias information is not created so module autoloading won't work.

---
 drivers/edac/ppc4xx_edac.c | 1 +
 1 file changed, 1 insertion(+)
drivers/edac/ppc4xx_edac.c +1 -0
index 711d8ad..d3a64ba 100644
@@ -199,6 +199,7 @@ static const struct of_device_id ppc4xx_edac_match[] = {
 	},
 	{ }
 };
+MODULE_DEVICE_TABLE(of, ppc4xx_edac_match);
 
 static struct platform_driver ppc4xx_edac_driver = {
 	.probe			= ppc4xx_edac_probe,
Signature · 1 line
2.4.6
Reviewed-by on v1 1/1
#1 lore raw
Quoted 4 lines · Luis de Bethencourt

This platform driver has a OF device ID table but the OF module alias information is not created so module autoloading won't work.

Quoted 16 lines
---
 drivers/edac/ppc4xx_edac.c | 1 +
 1 file changed, 1 insertion(+)
drivers/edac/ppc4xx_edac.c +1 -0
index 711d8ad..d3a64ba 100644
@@ -199,6 +199,7 @@ static const struct of_device_id ppc4xx_edac_match[] = {
 	},
 	{ }
 };
+MODULE_DEVICE_TABLE(of, ppc4xx_edac_match);
 
 static struct platform_driver ppc4xx_edac_driver = {
 	.probe			= ppc4xx_edac_probe,
maintainer Applied
#2 lore raw
In reply to Luis de Bethencourt
Quoted 14 lines · Luis de Bethencourt

This platform driver has a OF device ID table but the OF module alias information is not created so module autoloading won't work.

---
 drivers/edac/ppc4xx_edac.c | 1 +
 1 file changed, 1 insertion(+)
drivers/edac/ppc4xx_edac.c +0 -0
index 711d8ad..d3a64ba 100644

drivers/edac/ppc4xx_edac.c static const struct of_device_id ppc4xx_edac_match[] = { · line 205

Quoted 7 lines
drivers/edac/ppc4xx_edac.c +1 -0
@@ -199,6 +199,7 @@ static const struct of_device_id ppc4xx_edac_match[] = {
 	},
 	{ }
 };
+MODULE_DEVICE_TABLE(of, ppc4xx_edac_match);
 
 static struct platform_driver ppc4xx_edac_driver = {
 	.probe			= ppc4xx_edac_probe,

Applied, thanks.

Signature · 4 lines
Regards/Gruss,
    Boris.

ECO tip #101: Trim your mails when you reply.