ata: pata_macio: Fix module autoload for OF platform driver
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
@@ -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
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.
Signed-off-by Luis de Bethencourt <[email protected]>---
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
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.
Signed-off-by Luis de Bethencourt <[email protected]>---
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/519Can 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