From patchwork Tue May 11 20:17:16 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sebastian Herbszt X-Patchwork-Id: 52313 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id B3762B7D62 for ; Wed, 12 May 2010 06:18:29 +1000 (EST) Received: from localhost ([127.0.0.1]:48347 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OBvuL-0005xJ-V9 for incoming@patchwork.ozlabs.org; Tue, 11 May 2010 16:18:25 -0400 Received: from [140.186.70.92] (port=45845 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OBvtm-0005xE-Tk for qemu-devel@nongnu.org; Tue, 11 May 2010 16:17:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OBvtl-0006Nj-8n for qemu-devel@nongnu.org; Tue, 11 May 2010 16:17:50 -0400 Received: from mail.gmx.net ([213.165.64.20]:43065) by eggs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1OBvtk-0006NN-Sx for qemu-devel@nongnu.org; Tue, 11 May 2010 16:17:49 -0400 Received: (qmail invoked by alias); 11 May 2010 20:17:47 -0000 Received: from g226048102.adsl.alicedsl.de (HELO opensuse112) [92.226.48.102] by mail.gmx.net (mp072) with SMTP; 11 May 2010 22:17:47 +0200 X-Authenticated: #310364 X-Provags-ID: V01U2FsdGVkX18nuBQWhj4n/ACU9cDNV7dGCgoL0pFhCbghf33bcA U+7YIV7Qcrbvko X-Mailer: gregkh_patchbomb modified Date: Tue, 11 May 2010 22:17:16 +0200 Message-Id: <1273609036$2303@local> Mime-Version: 1.0 To: qemu-devel@nongnu.org From: Sebastian Herbszt X-Y-GMX-Trusted: 0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. Cc: Sebastian Herbszt Subject: [Qemu-devel] [PATCH] ahci: use interface type IF_SATA X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Use interface type IF_SATA instead of IF_SCSI. Signed-off-by: Sebastian Herbszt 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;