Skip to contentSkip to conversation

mmc: omap: Fix module autoload for OF platform driver

PATCH Applied Luis de Bethencourt 2 participants 2 messages Sep 17, 2015 – Oct 6, 2015

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

PATCH 3/3 mmc: omap: 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/mmc/host/omap.c | 1 +
 1 file changed, 1 insertion(+)
drivers/mmc/host/omap.c +1 -0
index b763b11..b9958a1 100644
@@ -1490,6 +1490,7 @@ static const struct of_device_id mmc_omap_match[] = {
 	{ .compatible = "ti,omap2420-mmc", },
 	{ },
 };
+MODULE_DEVICE_TABLE(of, mmc_omap_match);
 #endif
 
 static struct platform_driver mmc_omap_driver = {
Signature · 1 line
2.4.6
Acked-by on v1 3/3
#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.

Looks OK to me, this would be mostly for n8x0:

Quoted 25 lines
---
 drivers/mmc/host/omap.c | 1 +
 1 file changed, 1 insertion(+)
drivers/mmc/host/omap.c +1 -0
index b763b11..b9958a1 100644
@@ -1490,6 +1490,7 @@ static const struct of_device_id mmc_omap_match[] = {
 	{ .compatible = "ti,omap2420-mmc", },
 	{ },
 };
+MODULE_DEVICE_TABLE(of, mmc_omap_match);
 #endif
 
 static struct platform_driver mmc_omap_driver = {
Signature · 7 lines
2.4.6

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/