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

* [PATCH 2/3] mfd: pcf50633-core: add MODULE_DEVICE_TABLE
  2011-02-28  6:32 [PATCH 1/3] mfd: mc13xxx-core: add MODULE_DEVICE_TABLE Axel Lin
@ 2011-02-28  6:33 ` Axel Lin
  2011-02-28  8:45   ` Harald Welte
  2011-02-28  6:34 ` [PATCH 3/3] mfd: vx855: " Axel Lin
                   ` (2 subsequent siblings)
  3 siblings, 1 reply; 7+ messages in thread
From: Axel Lin @ 2011-02-28  6:33 UTC (permalink / raw)
  To: linux-kernel; +Cc: Harald Welte, 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 i2c:pcf50633 pcf50633

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

diff --git a/drivers/mfd/pcf50633-core.c b/drivers/mfd/pcf50633-core.c
index 2640e4d..c1306ed 100644
--- a/drivers/mfd/pcf50633-core.c
+++ b/drivers/mfd/pcf50633-core.c
@@ -360,6 +360,7 @@ static struct i2c_device_id pcf50633_id_table[] = {
 	{"pcf50633", 0x73},
 	{/* end of list */}
 };
+MODULE_DEVICE_TABLE(i2c, pcf50633_id_table);
 
 static struct i2c_driver pcf50633_driver = {
 	.driver = {
-- 
1.7.2




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

* [PATCH 3/3] mfd: vx855: add MODULE_DEVICE_TABLE
  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  6:34 ` 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
  3 siblings, 1 reply; 7+ messages in thread
From: Axel Lin @ 2011-02-28  6:34 UTC (permalink / raw)
  To: linux-kernel; +Cc: Harald Welte, 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.pcimap:
vx855                0x00001106 0x00008409 0xffffffff 0xffffffff 0x00000000 0x00000000 0x0

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

diff --git a/drivers/mfd/vx855.c b/drivers/mfd/vx855.c
index 348052a..d698703 100644
--- a/drivers/mfd/vx855.c
+++ b/drivers/mfd/vx855.c
@@ -122,6 +122,7 @@ static struct pci_device_id vx855_pci_tbl[] = {
 	{ PCI_DEVICE(PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_VX855) },
 	{ 0, }
 };
+MODULE_DEVICE_TABLE(pci, vx855_pci_tbl);
 
 static struct pci_driver vx855_pci_driver = {
 	.name		= "vx855",
-- 
1.7.2




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

* Re: [PATCH 1/3] mfd: mc13xxx-core: add MODULE_DEVICE_TABLE
  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  6:34 ` [PATCH 3/3] mfd: vx855: " Axel Lin
@ 2011-02-28  7:49 ` Uwe Kleine-König
  2011-03-02 10:10 ` Samuel Ortiz
  3 siblings, 0 replies; 7+ messages in thread
From: Uwe Kleine-König @ 2011-02-28  7:49 UTC (permalink / raw)
  To: Axel Lin; +Cc: linux-kernel, Samuel Ortiz

Hello Axel,

On Mon, Feb 28, 2011 at 02:32:15PM +0800, Axel Lin wrote:
> 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>
Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>

Thanks
Uwe

-- 
Pengutronix e.K.                           | Uwe Kleine-König            |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |

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

* Re: [PATCH 2/3] mfd: pcf50633-core: add MODULE_DEVICE_TABLE
  2011-02-28  6:33 ` [PATCH 2/3] mfd: pcf50633-core: " Axel Lin
@ 2011-02-28  8:45   ` Harald Welte
  0 siblings, 0 replies; 7+ messages in thread
From: Harald Welte @ 2011-02-28  8:45 UTC (permalink / raw)
  To: Axel Lin; +Cc: linux-kernel, Samuel Ortiz

On Mon, Feb 28, 2011 at 02:33:12PM +0800, Axel Lin wrote:
> 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 i2c:pcf50633 pcf50633
> 
> Signed-off-by: Axel Lin <axel.lin@gmail.com>

Acked-by: Harald Welte <laforge@gnumonks.org>

-- 
- Harald Welte <laforge@gnumonks.org>           http://laforge.gnumonks.org/
============================================================================
"Privacy in residential applications is a desirable marketing option."
                                                  (ETSI EN 300 175-7 Ch. A6)

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

* Re: [PATCH 3/3] mfd: vx855: add MODULE_DEVICE_TABLE
  2011-02-28  6:34 ` [PATCH 3/3] mfd: vx855: " Axel Lin
@ 2011-02-28 15:29   ` Harald Welte
  0 siblings, 0 replies; 7+ messages in thread
From: Harald Welte @ 2011-02-28 15:29 UTC (permalink / raw)
  To: Axel Lin; +Cc: linux-kernel, Samuel Ortiz

Hi Axel,

On Mon, Feb 28, 2011 at 02:34:27PM +0800, Axel Lin wrote:
> The device table is required to load modules based on modaliases.
> After adding the MODULE_DEVICE_TABLE, below entries will be added to
> modules.pcimap:
> vx855                0x00001106 0x00008409 0xffffffff 0xffffffff 0x00000000 0x00000000 0x0
> 
> Signed-off-by: Axel Lin <axel.lin@gmail.com>

Acked-by: Harald Welte <laforge@gnumonks.org>

-- 
- Harald Welte <HaraldWelte@viatech.com>	    http://linux.via.com.tw/

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

* Re: [PATCH 1/3] mfd: mc13xxx-core: add MODULE_DEVICE_TABLE
  2011-02-28  6:32 [PATCH 1/3] mfd: mc13xxx-core: add MODULE_DEVICE_TABLE Axel Lin
                   ` (2 preceding siblings ...)
  2011-02-28  7:49 ` [PATCH 1/3] mfd: mc13xxx-core: " Uwe Kleine-König
@ 2011-03-02 10:10 ` Samuel Ortiz
  3 siblings, 0 replies; 7+ messages in thread
From: Samuel Ortiz @ 2011-03-02 10:10 UTC (permalink / raw)
  To: Axel Lin; +Cc: linux-kernel, Uwe Kleine-Koenig

Hi Axel,

On Mon, Feb 28, 2011 at 02:32:15PM +0800, Axel Lin wrote:
> 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
Thanks, all 3 patches applied.

Cheers,
Samuel.

-- 
Intel Open Source Technology Centre
http://oss.intel.com/

^ permalink raw reply	[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