Staging: ipack/bridges/tpci200: change device table definition and export it.
authorMiguel Gómez <magomez@igalia.com>
Thu, 7 Jun 2012 08:24:58 +0000 (10:24 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 9 Jun 2012 15:58:04 +0000 (08:58 -0700)
Use DEFINE_PCI_DEVICE_TABLE() to create the device table and add
MODULE_DEVICE_TABLE() to export it.

Signed-off-by: Miguel Gómez <magomez@igalia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/ipack/bridges/tpci200.c

index e692f1e..ae9f803 100644 (file)
@@ -871,12 +871,14 @@ static void __devexit tpci200_pci_remove(struct pci_dev *dev)
        }
 }
 
-static struct pci_device_id tpci200_idtable[2] = {
+static DEFINE_PCI_DEVICE_TABLE(tpci200_idtable) = {
        { TPCI200_VENDOR_ID, TPCI200_DEVICE_ID, TPCI200_SUBVENDOR_ID,
          TPCI200_SUBDEVICE_ID },
        { 0, },
 };
 
+MODULE_DEVICE_TABLE(pci, tpci200_idtable);
+
 static struct pci_driver tpci200_pci_drv = {
        .name = "tpci200",
        .id_table = tpci200_idtable,