Skip to contentSkip to conversation

staging: mt29f_spinand: Fix module autoload for OF platform driver

PATCH In review Luis de Bethencourt 2 participants 3 messages Sep 3, 2015 – Sep 4, 2015

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/2 staging: mt29f_spinand: 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/staging/mt29f_spinand/mt29f_spinand.c | 1 +
 1 file changed, 1 insertion(+)
drivers/staging/mt29f_spinand/mt29f_spinand.c +1 -0
index ad30ce4..1aa449e 100644
@@ -941,6 +941,7 @@ static const struct of_device_id spinand_dt[] = {
 	{ .compatible = "spinand,mt29f", },
 	{}
 };
+MODULE_DEVICE_TABLE(of, spinand_dt);
 
 /*
  * Device name structure description
Signature · 1 line
2.4.6
#1 lore raw
Quoted 5 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.

---

I think you need to refresh your tree. This has already been done by:
ddaaa82ef93d ("staging: mt29f_spinand: Export OF module alias information");

regards
sudip

#2 lore raw
Quoted 11 lines · Sudip Mukherjee
Quoted 5 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.

---

I think you need to refresh your tree. This has already been done by:
ddaaa82ef93d ("staging: mt29f_spinand: Export OF module alias information");

regards
sudip

Javier asked me to help him with the autoloading of Open Firmware driving. We have clashed 3 times.

Sorry about that and thanks for the review Sudip,
Luis