mtd: mpc5121_nfc: Fix module autoload for OF platform driver
authorLuis de Bethencourt <luis@debethencourt.com>
Thu, 17 Sep 2015 22:13:01 +0000 (00:13 +0200)
committerBrian Norris <computersforpeace@gmail.com>
Mon, 28 Sep 2015 23:19:51 +0000 (16:19 -0700)
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>
drivers/mtd/nand/mpc5121_nfc.c

index 2a49b53c8db96b03a3b56a7cd039502ebfee0c9d..019fe0dc620320bd42fa3c5e54c235c1e70619fa 100644 (file)
@@ -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,