NULL-terminate all pci_device_id tables
authorDzianis Kahanovich <mahatma@bspu.unibel.by>
Thu, 28 Oct 2010 02:33:05 +0000 (20:33 -0600)
committerRusty Russell <rusty@rustcorp.com.au>
Wed, 27 Oct 2010 10:03:05 +0000 (20:33 +1030)
NULL-terminating pci_device_id in pch_dma.c and scx200_acb.c
for appying MODULE_DEVICE_TABLE (to publish modalias-es).

Signed-off-by: Dzianis Kahanovich <mahatma@eu.by>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
drivers/dma/pch_dma.c
drivers/i2c/busses/scx200_acb.c

index 3533948b88ba919de7a1ba3c464b3a49108fc5bc..92b679024fedd9e033e9cbae311f7f8d7f221142 100644 (file)
@@ -926,6 +926,7 @@ static void __devexit pch_dma_remove(struct pci_dev *pdev)
 static const struct pci_device_id pch_dma_id_table[] = {
        { PCI_VDEVICE(INTEL, PCI_DEVICE_ID_PCH_DMA_8CH), 8 },
        { PCI_VDEVICE(INTEL, PCI_DEVICE_ID_PCH_DMA_4CH), 4 },
+       { 0, },
 };
 
 static struct pci_driver pch_dma_driver = {
index 4cb4bb009950ca98aec8aedf901629924cadff72..53fab518b3dac3fbf6dba85048163bf35d133e36 100644 (file)
@@ -560,7 +560,8 @@ static const struct pci_device_id scx200_pci[] __initconst = {
        { PCI_DEVICE(PCI_VENDOR_ID_NS, PCI_DEVICE_ID_NS_CS5535_ISA),
          .driver_data = 1 },
        { PCI_DEVICE(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_CS5536_ISA),
-         .driver_data = 2 }
+         .driver_data = 2 },
+       { 0, }
 };
 
 static struct {