virtio: make pci_device_id const
[firefly-linux-kernel-4.4.55.git] / drivers / virtio / virtio_pci.c
index 52c5ce6aec8d997f5379677ea20f5a0511064b82..a7ce73029f5989de1cf3c53fc318bcfebfc99c87 100644 (file)
@@ -91,9 +91,9 @@ struct virtio_pci_vq_info
 };
 
 /* Qumranet donated their vendor ID for devices 0x1000 thru 0x10FF. */
-static struct pci_device_id virtio_pci_id_table[] = {
-       { 0x1af4, PCI_ANY_ID, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 },
-       { 0 },
+static DEFINE_PCI_DEVICE_TABLE(virtio_pci_id_table) = {
+       { PCI_DEVICE(0x1af4, PCI_ANY_ID) },
+       { 0 }
 };
 
 MODULE_DEVICE_TABLE(pci, virtio_pci_id_table);