From 9be5dafe488088bcff8f8365bc7dd35d3dac5186 Mon Sep 17 00:00:00 2001 From: Paul Brook Date: Thu, 14 May 2009 22:35:07 +0100 Subject: LSI SCSI qdev conversion Signed-off-by: Paul Brook --- hw/pc.c | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'hw/pc.c') diff --git a/hw/pc.c b/hw/pc.c index ca1be5751b..d1ba79bb28 100644 --- a/hw/pc.c +++ b/hw/pc.c @@ -1122,19 +1122,11 @@ static void pc_init1(ram_addr_t ram_size, if (pci_enabled) { int max_bus; - int bus, unit; - void *scsi; + int bus; max_bus = drive_get_max_bus(IF_SCSI); - for (bus = 0; bus <= max_bus; bus++) { - scsi = lsi_scsi_init(pci_bus, -1); - for (unit = 0; unit < LSI_MAX_DEVS; unit++) { - index = drive_get_index(IF_SCSI, bus, unit); - if (index == -1) - continue; - lsi_scsi_attach(scsi, drives_table[index].bdrv, unit); - } + pci_create_simple(pci_bus, -1, "lsi53c895a"); } } -- cgit 1.4.1