qemu/hw/m68k
Philippe Mathieu-Daudé 7f090ed710 hw/m68k/virt: Do not open-code sysbus_create_simple()
Mechanical change using the following coccinelle script:

  @@
  identifier dev;
  expression qom_type;
  expression addr;
  expression irq;
  @@
  -    dev = qdev_new(qom_type);
  -    sysbus_realize_and_unref(SYS_BUS_DEVICE(dev), &error_fatal);
  -    sysbus_mmio_map(SYS_BUS_DEVICE(dev), 0, addr);
  -    sysbus_connect_irq(SYS_BUS_DEVICE(dev), 0, irq);
  +    dev = sysbus_create_simple(qom_type, addr, irq);

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Thomas Huth <huth@tuxfamily.org>
Message-ID: <20231024083010.12453-7-philmd@linaro.org>
Signed-off-by: Thomas Huth <huth@tuxfamily.org>
2023-11-01 07:20:35 +01:00
..
an5206.c hw/m68k/mcf5206: Pass CPU using QOM link property 2023-11-01 07:20:34 +01:00
bootinfo.h hw/m68k: Clean up local variable shadowing 2023-09-29 10:07:15 +02:00
Kconfig audio: add Apple Sound Chip (ASC) emulation 2023-10-06 10:33:43 +02:00
mcf5206.c hw/m68k/mcf5206: Pass CPU using QOM link property 2023-11-01 07:20:34 +01:00
mcf5208.c ptimer: Rename PTIMER_POLICY_DEFAULT to PTIMER_POLICY_LEGACY 2022-05-19 16:19:03 +01:00
mcf_intc.c hw/m68k/mcf_intc: Pass CPU using QOM link property 2023-11-01 07:20:34 +01:00
meson.build q800: move GLUE device into separate q800-glue.c file 2023-06-22 09:21:57 +02:00
next-cube.c hw/m68k/next-cube: Do not open-code sysbus_create_simple() 2023-11-01 07:20:34 +01:00
next-kbd.c other architectures: spelling fixes 2023-07-25 17:14:07 +03:00
q800-glue.c q800: add Apple Sound Chip (ASC) audio to machine 2023-10-06 10:33:43 +02:00
q800.c q800: add alias for MacOS toolbox ROM at 0x40000000 2023-10-06 10:33:43 +02:00
virt.c hw/m68k/virt: Do not open-code sysbus_create_simple() 2023-11-01 07:20:35 +01:00