diff options
Diffstat (limited to 'hw/openrisc_sim.c')
-rw-r--r-- | hw/openrisc_sim.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/openrisc_sim.c b/hw/openrisc_sim.c index 6c443ba804..30947dee6e 100644 --- a/hw/openrisc_sim.c +++ b/hw/openrisc_sim.c @@ -50,7 +50,7 @@ static void openrisc_sim_net_init(MemoryRegion *address_space, qdev_set_nic_properties(dev, nd); qdev_init_nofail(dev); - s = sysbus_from_qdev(dev); + s = SYS_BUS_DEVICE(dev); sysbus_connect_irq(s, 0, irq); memory_region_add_subregion(address_space, base, sysbus_mmio_get_region(s, 0)); |