Skip to contentSkip to conversation

mtd: mpc5121_nfc: Fix module autoload for OF platform driver

PATCH In review Luis de Bethencourt 1 participant 1 message Sep 17, 2015

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

PATCH 3/5 mtd: mpc5121_nfc: 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/mtd/nand/mpc5121_nfc.c | 1 +
 1 file changed, 1 insertion(+)
drivers/mtd/nand/mpc5121_nfc.c +1 -0
index 2a49b53..019fe0d 100644
@@ -841,6 +841,7 @@ static const struct of_device_id mpc5121_nfc_match[] = {
 	{ .compatible = "fsl,mpc5121-nfc", },
 	{},
 };
+MODULE_DEVICE_TABLE(of, mpc5121_nfc_match);
 
 static struct platform_driver mpc5121_nfc_driver = {
 	.probe		= mpc5121_nfc_probe,
Signature · 1 line
2.4.6