fix Xen compilation
authorStefano Stabellini <stefano.stabellini@eu.citrix.com>
Wed, 1 Aug 2012 10:19:09 +0000 (11:19 +0100)
committerAnthony Liguori <aliguori@us.ibm.com>
Wed, 1 Aug 2012 13:43:37 +0000 (08:43 -0500)
xen_pt_unregister_device is used as PCIUnregisterFunc, so it should
match the type.

Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/xen_pt.c

index fdf68aa564f1195134c6790c34378b868ba0e74f..307119a12f795cdbb707056ee9e84ebf413ae29c 100644 (file)
@@ -764,7 +764,7 @@ out:
     return 0;
 }
 
-static int xen_pt_unregister_device(PCIDevice *d)
+static void xen_pt_unregister_device(PCIDevice *d)
 {
     XenPCIPassthroughState *s = DO_UPCAST(XenPCIPassthroughState, dev, d);
     uint8_t machine_irq = s->machine_irq;
@@ -814,8 +814,6 @@ static int xen_pt_unregister_device(PCIDevice *d)
     memory_listener_unregister(&s->memory_listener);
 
     xen_host_pci_device_put(&s->real_device);
-
-    return 0;
 }
 
 static Property xen_pci_passthrough_properties[] = {