浏览代码

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.

Signed-off-by: Luis de Bethencourt <luisbg@osg.samsung.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Luis de Bethencourt 10 年之前
父节点
当前提交
7446076e81
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      drivers/mtd/nand/mpc5121_nfc.c

+ 1 - 0
drivers/mtd/nand/mpc5121_nfc.c

@@ -841,6 +841,7 @@ static const struct of_device_id mpc5121_nfc_match[] = {
 	{ .compatible = "fsl,mpc5121-nfc", },
 	{ .compatible = "fsl,mpc5121-nfc", },
 	{},
 	{},
 };
 };
+MODULE_DEVICE_TABLE(of, mpc5121_nfc_match);
 
 
 static struct platform_driver mpc5121_nfc_driver = {
 static struct platform_driver mpc5121_nfc_driver = {
 	.probe		= mpc5121_nfc_probe,
 	.probe		= mpc5121_nfc_probe,