]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commitdiff
virtio: Replace DEFINE_PCI_DEVICE_TABLE macro use
authorBenoit Taine <benoit.taine@lip6.fr>
Sat, 26 Jul 2014 22:01:01 +0000 (07:31 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Sun, 27 Jul 2014 11:37:15 +0000 (21:07 +0930)
We should prefer `struct pci_device_id` over `DEFINE_PCI_DEVICE_TABLE` to meet
kernel coding style guidelines. This issue was reported by checkpatch.

Signed-off-by: Benoit Taine <benoit.taine@lip6.fr>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
drivers/virtio/virtio_pci.c

index 101db3faf5d400cf56cbb5b2bc1e340455abde6f..3d1463c6b120359c79e7b11018ea19ff5c685812 100644 (file)
@@ -91,7 +91,7 @@ struct virtio_pci_vq_info
 };
 
 /* Qumranet donated their vendor ID for devices 0x1000 thru 0x10FF. */
-static DEFINE_PCI_DEVICE_TABLE(virtio_pci_id_table) = {
+static const struct pci_device_id virtio_pci_id_table[] = {
        { PCI_DEVICE(0x1af4, PCI_ANY_ID) },
        { 0 }
 };