public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/3] mfd: mc13xxx-core: add MODULE_DEVICE_TABLE
@ 2011-02-28  6:32 Axel Lin
  2011-02-28  6:33 ` [PATCH 2/3] mfd: pcf50633-core: " Axel Lin
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Axel Lin @ 2011-02-28  6:32 UTC (permalink / raw)
  To: linux-kernel; +Cc: Uwe Kleine-Koenig, Samuel Ortiz

The device table is required to load modules based on modaliases.
After adding the MODULE_DEVICE_TABLE, below entries will be added to
modules.alias:
alias spi:mc13892 mc13xxx_core
alias spi:mc13783 mc13xxx_core

Signed-off-by: Axel Lin <axel.lin@gmail.com>
---
 drivers/mfd/mc13xxx-core.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/drivers/mfd/mc13xxx-core.c b/drivers/mfd/mc13xxx-core.c
index b9fcaf0..c300560 100644
--- a/drivers/mfd/mc13xxx-core.c
+++ b/drivers/mfd/mc13xxx-core.c
@@ -811,6 +811,7 @@ static const struct spi_device_id mc13xxx_device_id[] = {
 		/* sentinel */
 	}
 };
+MODULE_DEVICE_TABLE(spi, mc13xxx_device_id);
 
 static struct spi_driver mc13xxx_driver = {
 	.id_table = mc13xxx_device_id,
-- 
1.7.2




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

end of thread, other threads:[~2011-03-02 10:10 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-28  6:32 [PATCH 1/3] mfd: mc13xxx-core: add MODULE_DEVICE_TABLE Axel Lin
2011-02-28  6:33 ` [PATCH 2/3] mfd: pcf50633-core: " Axel Lin
2011-02-28  8:45   ` Harald Welte
2011-02-28  6:34 ` [PATCH 3/3] mfd: vx855: " Axel Lin
2011-02-28 15:29   ` Harald Welte
2011-02-28  7:49 ` [PATCH 1/3] mfd: mc13xxx-core: " Uwe Kleine-König
2011-03-02 10:10 ` Samuel Ortiz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox