Explorar el Código

mtd: orion_nand: 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>
Acked-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Luis de Bethencourt hace 10 años
padre
commit
98d1a5eea3
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      drivers/mtd/nand/orion_nand.c

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

@@ -201,6 +201,7 @@ static const struct of_device_id orion_nand_of_match_table[] = {
 	{ .compatible = "marvell,orion-nand", },
 	{},
 };
+MODULE_DEVICE_TABLE(of, orion_nand_of_match_table);
 #endif
 
 static struct platform_driver orion_nand_driver = {