aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/virtio
diff options
context:
space:
mode:
authorStephen Hemminger <stephen@networkplumber.org>2013-02-10 00:27:39 -0500
committerRusty Russell <rusty@rustcorp.com.au>2013-02-11 00:02:18 -0500
commit35cdc9eb65837687bdfc9ea1d2515eb03ea5048a (patch)
tree7e3450f90b28cd70614b6b19db1209282493e01c /drivers/virtio
parent9350393239153c4a98cbed4d69b9ed81e37d5e74 (diff)
virtio: make pci_device_id const
Use DEVICE_TABLE macro which also makes table const. Signed-off-by: Stephen Hemminger <shemminger@vyatta.com> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'drivers/virtio')
-rw-r--r--drivers/virtio/virtio_pci.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/virtio/virtio_pci.c b/drivers/virtio/virtio_pci.c
index 52c5ce6aec8d..a7ce73029f59 100644
--- a/drivers/virtio/virtio_pci.c
+++ b/drivers/virtio/virtio_pci.c
@@ -91,9 +91,9 @@ struct virtio_pci_vq_info
91}; 91};
92 92
93/* Qumranet donated their vendor ID for devices 0x1000 thru 0x10FF. */ 93/* Qumranet donated their vendor ID for devices 0x1000 thru 0x10FF. */
94static struct pci_device_id virtio_pci_id_table[] = { 94static DEFINE_PCI_DEVICE_TABLE(virtio_pci_id_table) = {
95 { 0x1af4, PCI_ANY_ID, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 }, 95 { PCI_DEVICE(0x1af4, PCI_ANY_ID) },
96 { 0 }, 96 { 0 }
97}; 97};
98 98
99MODULE_DEVICE_TABLE(pci, virtio_pci_id_table); 99MODULE_DEVICE_TABLE(pci, virtio_pci_id_table);