summaryrefslogtreecommitdiffstats
path: root/drivers/virtio
diff options
context:
space:
mode:
authorBenoit Taine <benoit.taine@lip6.fr>2014-07-27 00:01:01 +0200
committerRusty Russell <rusty@rustcorp.com.au>2014-07-27 13:37:15 +0200
commitcef340e6aa2ac16651f6a49d93551b27a9ee24bb (patch)
treea58c5040bbd865f024ef9b9162c78c9a80a30d9e /drivers/virtio
parentvirtio: console: remove unnecessary null test before debugfs_remove_recursive (diff)
downloadlinux-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.c2
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 }
};