From d6d239be99582ab5821c6cd6ddcd2a8acba20313 Mon Sep 17 00:00:00 2001 From: Sasha Levin Date: Sun, 18 Sep 2011 21:25:51 +0300 Subject: [PATCH] kvm tools: Use correct subsys id in virtio-pci Signed-off-by: Sasha Levin --- virtio/pci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/virtio/pci.c b/virtio/pci.c index 2745b25..7743431 100644 --- a/virtio/pci.c +++ b/virtio/pci.c @@ -302,7 +302,7 @@ int virtio_pci__init(struct kvm *kvm, struct virtio_pci *vpci, void *dev, vpci->pci_hdr.msix.pba_offset = 3; /* Use BAR 3 */ vpci->config_vector = 0; - if (irq__register_device(VIRTIO_ID_RNG, &ndev, &pin, &line) < 0) + if (irq__register_device(subsys_id, &ndev, &pin, &line) < 0) return -1; vpci->pci_hdr.irq_pin = pin;