Revision 1356b98d hw/pflash_cfi01.c

b/hw/pflash_cfi01.c
729 729
                                uint16_t id2, uint16_t id3, int be)
730 730
{
731 731
    DeviceState *dev = qdev_create(NULL, "cfi.pflash01");
732
    SysBusDevice *busdev = sysbus_from_qdev(dev);
732
    SysBusDevice *busdev = SYS_BUS_DEVICE(dev);
733 733
    pflash_t *pfl = (pflash_t *)object_dynamic_cast(OBJECT(dev),
734 734
                                                    "cfi.pflash01");
735 735

  

Also available in: Unified diff