Skip to content

Commit

Permalink
virtio: make pci_device_id const
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Stephen Hemminger authored and Rusty Russell committed Feb 11, 2013
1 parent 9350393 commit 35cdc9e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/virtio/virtio_pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 35cdc9e

Please sign in to comment.