diff --git a/hw/lsi53c895a.c b/hw/lsi53c895a.c
index 62bdca8..7e975b4 100644
--- a/hw/lsi53c895a.c
+++ b/hw/lsi53c895a.c
@@ -1959,6 +1959,22 @@ static void lsi_mmio_mapfunc(PCIDevice *pci_dev, int
region_num,
cpu_register_physical_memory(addr + 0, 0x400, s->mmio_io_addr);
}
+void lsi_scsi_detach(DeviceState *host, BlockDriverState *bd, int id)
+{
+ LSIState *s = (LSIState *)host;
+
+ if (id>= LSI_MAX_DEVS || id< 0) {
+ BADF("Bad Device ID %d\n", id);
+ return;
+ }
+
+ if (s->bus->devs[id]) {
+ DPRINTF("Destroying device %d\n", id);
+ s->bus->devs[id]->info->destroy(s->bus->devs[id]);
+ }
+ s->bus->devs[id] = NULL;
+}
+