Message ID | baf94eb690c435f0b46968dcf23f65240a7ba552.1251131364.git.quintela@redhat.com |
---|---|
State | Superseded |
Headers | show |
diff --git a/hw/lsi53c895a.c b/hw/lsi53c895a.c index d154b23..94712aa 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++) {
Go figure. Signed-off-by: Juan Quintela <quintela@redhat.com> --- hw/lsi53c895a.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)