X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Fsrc%2Fdevices%2Fpiix3.c;h=ab82bdbcc135ff32638d3c9e5a2d6a9843e5f586;hb=1bd025c8e158b2b5f4c8e8ccf1bcf8d702dde037;hp=669d147f19bdabe0a6680bbf7d11965359c3917c;hpb=c337a47be935380fba4b7425e80be7c089e45e6c;p=palacios.git diff --git a/palacios/src/devices/piix3.c b/palacios/src/devices/piix3.c index 669d147..ab82bdb 100644 --- a/palacios/src/devices/piix3.c +++ b/palacios/src/devices/piix3.c @@ -395,13 +395,17 @@ static int lower_pci_irq(struct pci_device * pci_dev, void * dev_data) { -static int piix_free(struct vm_device * dev) { +static int piix_free(struct v3_southbridge * piix3) { + + // unregister pci + + V3_Free(piix3); return 0; } static struct v3_device_ops dev_ops = { - .free = piix_free, + .free = (int (*)(void *))piix_free, };