Patchwork ahci: use interface type IF_SATA

login
register
mail settings
Submitter Sebastian Herbszt
Date May 11, 2010, 8:17 p.m.
Message ID <1273609036$2303@local>
Download mbox | patch
Permalink /patch/52313/
State New
Headers show

Comments

Sebastian Herbszt - May 11, 2010, 8:17 p.m.
Use interface type IF_SATA instead of IF_SCSI.

Signed-off-by: Sebastian Herbszt <herbszt@gmx.de>

Patch

diff --git a/hw/ahci.c b/hw/ahci.c
index 2763075..6f7b807 100644
--- a/hw/ahci.c
+++ b/hw/ahci.c
@@ -1160,7 +1160,7 @@  static AHCIState *ahci_new(void)
 	s->timer = qemu_new_timer(vm_clock, ahci_timer_function, s);
 	s->prdt_buf = qemu_malloc(65535*32);
 
-	if ((dinfo = drive_get(IF_SCSI, 0, 0)) != NULL)
+	if ((dinfo = drive_get(IF_SATA, 0, 0)) != NULL)
 	{
 		ide_init2(bus, dinfo, NULL,0);
 		s->ide=bus;