diff options
author | Benoit Taine <benoit.taine@lip6.fr> | 2014-07-27 00:01:01 +0200 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2014-07-27 13:37:15 +0200 |
commit | cef340e6aa2ac16651f6a49d93551b27a9ee24bb (patch) | |
tree | a58c5040bbd865f024ef9b9162c78c9a80a30d9e /drivers/virtio | |
parent | virtio: console: remove unnecessary null test before debugfs_remove_recursive (diff) | |
download | linux-cef340e6aa2ac16651f6a49d93551b27a9ee24bb.tar.xz linux-cef340e6aa2ac16651f6a49d93551b27a9ee24bb.zip |
virtio: Replace DEFINE_PCI_DEVICE_TABLE macro use
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>
Diffstat (limited to 'drivers/virtio')
-rw-r--r-- | drivers/virtio/virtio_pci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/virtio/virtio_pci.c b/drivers/virtio/virtio_pci.c index 101db3faf5d4..3d1463c6b120 100644 --- a/drivers/virtio/virtio_pci.c +++ b/drivers/virtio/virtio_pci.c @@ -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 } }; |