提交 18fc611b 编写于 作者: S Stefan Weil 提交者: Paolo Bonzini

megasas: Update function megasys_scsi_uninit

Commit f90c2bcd changed
PCIUnregisterFunc, therefore the function prototype
needs an update.

megasas.o is currently not linked, so this bug was not
detected by the buildbots.
Signed-off-by: NStefan Weil <sw@weilnetz.de>
Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
上级 ae5708b3
......@@ -2040,7 +2040,7 @@ static const VMStateDescription vmstate_megasas = {
}
};
static int megasas_scsi_uninit(PCIDevice *d)
static void megasas_scsi_uninit(PCIDevice *d)
{
MegasasState *s = DO_UPCAST(MegasasState, dev, d);
......@@ -2050,7 +2050,6 @@ static int megasas_scsi_uninit(PCIDevice *d)
memory_region_destroy(&s->mmio_io);
memory_region_destroy(&s->port_io);
memory_region_destroy(&s->queue_io);
return 0;
}
static const struct SCSIBusInfo megasas_scsi_info = {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册