Skip to contentSkip to conversation

ata: pata_macio: Fix module autoload for OF platform driver

PATCH In review Luis de Bethencourt 2 participants 3 messages Sep 15, 2015 libata

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ata: pata_macio: 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.

---

Hello,

This patch adds the missing MODULE_DEVICE_TABLE() for OF to export that information so modules have the correct aliases built-in and autoloading works correctly.

A longer explanation by Javier Canillas can be found here:
https://lkml.org/lkml/2015/7/30/519

Thanks,
Luis

 drivers/ata/pata_macio.c | 1 +
 1 file changed, 1 insertion(+)
drivers/ata/pata_macio.c +1 -0
index a02f76f..aba634e 100644
@@ -1344,6 +1344,7 @@ static struct of_device_id pata_macio_match[] =
 	},
 	{},
 };
+MODULE_DEVICE_TABLE(of, pata_macio_match);
 
 static struct macio_driver pata_macio_driver =
 {
Signature · 1 line
2.4.6
#1 lore raw
Quoted 6 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 8 lines

Hello,

This patch adds the missing MODULE_DEVICE_TABLE() for OF to export that information so modules have the correct aliases built-in and autoloading works correctly.

A longer explanation by Javier Canillas can be found here:
https://lkml.org/lkml/2015/7/30/519

Can you please include that in the patch description? Or at least add
Link: tag? Also, should this be routed through -stable?

Thanks.

Signature · 1 line
tejun
#2 lore raw
Quoted 13 lines · Tejun Heo
Quoted 12 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.

---

Hello,

This patch adds the missing MODULE_DEVICE_TABLE() for OF to export that information so modules have the correct aliases built-in and autoloading works correctly.

Quoted 10 lines
Quoted 2 lines

A longer explanation by Javier Canillas can be found here:
https://lkml.org/lkml/2015/7/30/519

Can you please include that in the patch description? Or at least add
Link: tag? Also, should this be routed through -stable?

Thanks.

Signature · 1 line
tejun

Tejun,

Sent a second version.

Thank you very much for the review,
Luis