qemu-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-commits] [COMMIT 63124a0] lsi53c895a: LSIState is a DeviceHost


From: Anthony Liguori
Subject: [Qemu-commits] [COMMIT 63124a0] lsi53c895a: LSIState is a DeviceHost
Date: Fri, 28 Aug 2009 02:20:08 -0000

From: Juan Quintela <address@hidden>

Go figure.

Signed-off-by: Juan Quintela <address@hidden>
Signed-off-by: Anthony Liguori <address@hidden>

diff --git a/hw/lsi53c895a.c b/hw/lsi53c895a.c
index 0d8248e..bf9f072 100644
--- a/hw/lsi53c895a.c
+++ b/hw/lsi53c895a.c
@@ -1960,7 +1960,7 @@ static void lsi_mmio_mapfunc(PCIDevice *pci_dev, int 
region_num,
 
 void lsi_scsi_attach(DeviceState *host, BlockDriverState *bd, int id)
 {
-    LSIState *s = (LSIState *)host;
+    LSIState *s = DO_UPCAST(LSIState, dev.qdev, host);
 
     if (id < 0) {
         for (id = 0; id < LSI_MAX_DEVS; id++) {




reply via email to

[Prev in Thread] Current Thread [Next in Thread]