All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] mtd: nand: tango: Export OF device ID table as module aliases
@ 2017-05-01 20:30 ` Andres Galacho
  0 siblings, 0 replies; 6+ messages in thread
From: Andres Galacho @ 2017-05-01 20:30 UTC (permalink / raw)
  To: linux-kernel
  Cc: boris.brezillon, richard, dwmw2, computersforpeace, marek.vasut,
	cyrille.pitchen, marc_gonzalez, linux-mtd, linux-arm-kernel,
	Andres Galacho

The device table is required to load modules based on
modaliases. After adding MODULE_DEVICE_TABLE, below entries
for example will be added to module.alias:
alias:          of:N*T*Csigma,smp8758-nandC*
alias:          of:N*T*Csigma,smp8758-nand

Signed-off-by: Andres Galacho <andresgalacho@gmail.com>
---
 drivers/mtd/nand/tango_nand.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/mtd/nand/tango_nand.c b/drivers/mtd/nand/tango_nand.c
index 05b6e1065203..82fea9b4c358 100644
--- a/drivers/mtd/nand/tango_nand.c
+++ b/drivers/mtd/nand/tango_nand.c
@@ -663,6 +663,7 @@ static const struct of_device_id tango_nand_ids[] = {
 	{ .compatible = "sigma,smp8758-nand" },
 	{ /* sentinel */ }
 };
+MODULE_DEVICE_TABLE(of, tango_nand_ids);
 
 static struct platform_driver tango_nand_driver = {
 	.probe	= tango_nand_probe,
-- 
2.11.0

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2017-05-15 20:47 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-01 20:30 [PATCH] mtd: nand: tango: Export OF device ID table as module aliases Andres Galacho
2017-05-01 20:30 ` Andres Galacho
2017-05-01 23:44 ` Brian Norris
2017-05-01 23:44   ` Brian Norris
2017-05-15 20:47 ` Boris Brezillon
2017-05-15 20:47   ` Boris Brezillon

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.