X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Fsrc%2Fdevices%2Fi440fx.c;h=6c587d3eedaf72108f3834475a4e564590a02925;hb=8d81fe78cacf4b754857fb0c7342a609bd2ef69d;hp=f1fc6283a96bff04e4c76a8f65ebd0cbeb722159;hpb=5cb3cd9300bcd5bc7a79dc6c5d126c53a5a17c5a;p=palacios.git diff --git a/palacios/src/devices/i440fx.c b/palacios/src/devices/i440fx.c index f1fc628..6c587d3 100644 --- a/palacios/src/devices/i440fx.c +++ b/palacios/src/devices/i440fx.c @@ -45,8 +45,7 @@ static int io_write(struct guest_info * core, ushort_t port, void * src, uint_t -static int i440_free(struct vm_device * dev) { - struct i440_state * state = dev->private_data; +static int i440_free(struct i440_state * state) { // unregister from PCI @@ -56,7 +55,7 @@ static int i440_free(struct vm_device * dev) { } static struct v3_device_ops dev_ops = { - .free = i440_free, + .free = (int (*)(void *))i440_free, };