Skip to contentSkip to conversation

mfd: mc13xxx-core: add MODULE_DEVICE_TABLE

PATCH In review Axel Lin 5 participants 7 messages Feb 28, 2011 – Mar 2, 2011 Multifunction devices (MFD)

lore
Share & tools
lore

Axel Lin

author
#0 lore raw

PATCH 1/3 mfd: mc13xxx-core: add MODULE_DEVICE_TABLE

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

---
 drivers/mfd/mc13xxx-core.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/mfd/mc13xxx-core.c +1 -0
index b9fcaf0..c300560 100644
@@ -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,
Signature · 1 line
1.7.2
author
#1 lore raw

PATCH 2/3 mfd: pcf50633-core: add MODULE_DEVICE_TABLE

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

---
 drivers/mfd/pcf50633-core.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/mfd/pcf50633-core.c +1 -0
index 2640e4d..c1306ed 100644
@@ -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 = {
Signature · 1 line
1.7.2
Acked-by on v1 2/3
#2 lore raw

Re: [PATCH 2/3] mfd: pcf50633-core: add MODULE_DEVICE_TABLE

Quoted 6 lines · Axel Lin

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

Signature · 4 lines
- Harald Welte <[email protected]>           http://laforge.gnumonks.org/
============================================================================
"Privacy in residential applications is a desirable marketing option."
                                                  (ETSI EN 300 175-7 Ch. A6)
author
#3 lore raw

PATCH 3/3 mfd: vx855: add MODULE_DEVICE_TABLE

In reply to Axel Lin

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

---
 drivers/mfd/vx855.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/mfd/vx855.c +1 -0
index 348052a..d698703 100644
@@ -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",
Signature · 1 line
1.7.2
Acked-by on v1 3/3
#4 lore raw

Re: [PATCH 3/3] mfd: vx855: add MODULE_DEVICE_TABLE

Hi Axel,

Quoted 6 lines · Axel Lin

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

Signature · 1 line
- Harald Welte <[email protected]>	    http://linux.via.com.tw/
Acked-by on v1 1/3
#5 lore raw
In reply to Axel Lin

Hello Axel,

Quoted 7 lines · Axel Lin

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
Uwe

Signature · 2 lines
Pengutronix e.K.                           | Uwe Kleine-König            |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
#6 lore raw
In reply to Axel Lin

Hi Axel,

Quoted 5 lines · Axel Lin

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.

Signature · 2 lines
Intel Open Source Technology Centre
http://oss.intel.com/