Commit 35cdc9eb authored by Stephen Hemminger's avatar Stephen Hemminger Committed by Rusty Russell

virtio: make pci_device_id const

Use DEVICE_TABLE macro which also makes table const.
Signed-off-by: default avatarStephen Hemminger <shemminger@vyatta.com>
Signed-off-by: default avatarRusty Russell <rusty@rustcorp.com.au>
parent 93503932
...@@ -91,9 +91,9 @@ struct virtio_pci_vq_info ...@@ -91,9 +91,9 @@ struct virtio_pci_vq_info
}; };
/* Qumranet donated their vendor ID for devices 0x1000 thru 0x10FF. */ /* Qumranet donated their vendor ID for devices 0x1000 thru 0x10FF. */
static struct pci_device_id virtio_pci_id_table[] = { static DEFINE_PCI_DEVICE_TABLE(virtio_pci_id_table) = {
{ 0x1af4, PCI_ANY_ID, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 }, { PCI_DEVICE(0x1af4, PCI_ANY_ID) },
{ 0 }, { 0 }
}; };
MODULE_DEVICE_TABLE(pci, virtio_pci_id_table); MODULE_DEVICE_TABLE(pci, virtio_pci_id_table);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment