From: Juan Quintela Date: Mon, 24 Aug 2009 16:42:44 +0000 (+0200) Subject: lsi53c895a: LSIState is a DeviceHost X-Git-Tag: v0.12.0-rc0~1405 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=63124a0d88750fd0e7872e13e7873ad4dc0cbd86;p=thirdparty%2Fqemu.git lsi53c895a: LSIState is a DeviceHost Go figure. Signed-off-by: Juan Quintela Signed-off-by: Anthony Liguori --- diff --git a/hw/lsi53c895a.c b/hw/lsi53c895a.c index 0d8248ebe83..bf9f072fe9c 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++) {