aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/virtio
diff options
context:
space:
mode:
authorStephen Hemminger <stephen@networkplumber.org>2013-02-10 15:57:39 +1030
committerRusty Russell <rusty@rustcorp.com.au>2013-02-11 15:32:18 +1030
commit35cdc9eb65837687bdfc9ea1d2515eb03ea5048a (patch)
tree7e3450f90b28cd70614b6b19db1209282493e01c /drivers/virtio
parent9350393239153c4a98cbed4d69b9ed81e37d5e74 (diff)
downloadkernel_goldelico_gta04-35cdc9eb65837687bdfc9ea1d2515eb03ea5048a.zip
kernel_goldelico_gta04-35cdc9eb65837687bdfc9ea1d2515eb03ea5048a.tar.gz
kernel_goldelico_gta04-35cdc9eb65837687bdfc9ea1d2515eb03ea5048a.tar.bz2
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 52c5ce6..a7ce730 100644
--- a/drivers/virtio/virtio_pci.c
+++ b/drivers/virtio/virtio_pci.c
@@ -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);