video: add MODULE_DEVICE_TABLE
PATCH 1/1 video: add MODULE_DEVICE_TABLE
The device table is required to load modules based on modaliases.
Signed-off-by Axel Lin <[email protected]>
Cc Ghozlane Toumi <[email protected]>
Cc David S. Miller <[email protected]>
Cc Alan Hourihane <[email protected]>
--- drivers/video/sstfb.c | 1 + drivers/video/sunxvr2500.c | 1 + drivers/video/sunxvr500.c | 1 + drivers/video/vermilion/vermilion.c | 1 + 4 files changed, 4 insertions(+), 0 deletions(-)
drivers/video/sstfb.c +1 -0
@@ -1485,6 +1485,7 @@ static const struct pci_device_id sstfb_id_tbl[] = { .driver_data = ID_VOODOO2, }, { 0 }, }; +MODULE_DEVICE_TABLE (pci, sstfb_id_tbl);static struct pci_driver sstfb_driver = { .name = "sstfb",
drivers/video/sunxvr2500.c +1 -0
@@ -244,6 +244,7 @@ static struct pci_device_id s3d_pci_table[] = { { PCI_DEVICE(PCI_VENDOR_ID_3DLABS, 0x0033), }, { 0, } }; +MODULE_DEVICE_TABLE (pci, s3d_pci_table);static struct pci_driver s3d_driver = { .name = "s3d",
drivers/video/sunxvr500.c +1 -0
@@ -428,6 +428,7 @@ static struct pci_device_id e3d_pci_table[] = { }, { 0, } }; +MODULE_DEVICE_TABLE (pci, e3d_pci_table);static struct pci_driver e3d_driver = { .name ="e3d" ,
drivers/video/vermilion/vermilion.c +1 -0
@@ -1057,6 +1057,7 @@ static struct pci_device_id vml_ids[] = { {PCI_DEVICE(PCI_VENDOR_ID_INTEL, VML_DEVICE_VDC)}, {0} }; +MODULE_DEVICE_TABLE (pci, vml_ids);static struct pci_driver vmlfb_pci_driver = { .name ="vmlfb" ,
Signature · 1 line
1.7.2
Alan Cox
NAKQuoted 1 line · On Mon, 07 Mar 2011 16:26:13 +0800 Axel Lin <[email protected]> wrote:
The device table is required to load modules based on modaliases.
Doing this then triggers autoloading which for some of these drivers is the wrong thing.
drivers/video/sstfb.c static const struct pci_device_id sstfb_id_tbl[] = { · line 1488
Quoted 9 lines
drivers/video/sstfb.c +1
-0@@ -1485,6 +1485,7 @@ static const struct pci_device_id sstfb_id_tbl[] = { .driver_data = ID_VOODOO2, }, { 0 }, }; +MODULE_DEVICE_TABLE(pci, sstfb_id_tbl);
NAK - as things stand in the frame buffer world you don't want sstfb autoloading and stealing your main framebuffer away.