]> git.proxmox.com Git - mirror_qemu.git/commitdiff
libqos: drop duplicated PCI vendor ID definition
authorStefan Hajnoczi <stefanha@redhat.com>
Mon, 9 May 2016 12:47:35 +0000 (13:47 +0100)
committerStefan Hajnoczi <stefanha@redhat.com>
Mon, 20 Jun 2016 10:44:11 +0000 (11:44 +0100)
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-id: 1462798061-30382-3-git-send-email-stefanha@redhat.com

tests/libqos/virtio-pci.c
tests/libqos/virtio.h

index 9d45e2028e6e9a65b4c50fefe472048954b26759..dc867d78884ca3bfad6c1361d430a04468565aa0 100644 (file)
@@ -16,6 +16,7 @@
 #include "libqos/malloc.h"
 #include "libqos/malloc-pc.h"
 
+#include "hw/pci/pci.h"
 #include "hw/pci/pci_regs.h"
 
 typedef struct QVirtioPCIForeachData {
@@ -263,7 +264,7 @@ void qvirtio_pci_foreach(QPCIBus *bus, uint16_t device_type,
                                 .device_type = device_type,
                                 .user_data = data };
 
-    qpci_device_foreach(bus, QVIRTIO_VENDOR_ID, -1,
+    qpci_device_foreach(bus, PCI_VENDOR_ID_REDHAT_QUMRANET, -1,
                                 qvirtio_pci_foreach_callback, &d);
 }
 
index af03793870280c73743f116f67c1e26442d12ac7..e663bcf3d11c3fa9a0fb45a34cf9154661b04534 100644 (file)
@@ -12,8 +12,6 @@
 
 #include "libqos/malloc.h"
 
-#define QVIRTIO_VENDOR_ID       0x1AF4
-
 #define QVIRTIO_RESET           0x0
 #define QVIRTIO_ACKNOWLEDGE     0x1
 #define QVIRTIO_DRIVER          0x2