summary refs log tree commit diff stats
path: root/hw/m68k/next-cube.c
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <philmd@linaro.org>2023-10-24 10:30:09 +0200
committerThomas Huth <huth@tuxfamily.org>2023-11-01 07:20:35 +0100
commit7f090ed7103df119fa33651ae15958ddb5863f56 (patch)
treef90495073b276a3c6205a39c8484991c42e5c707 /hw/m68k/next-cube.c
parentb2897f7ed446aedf2e5ed33762ac823db13c2f56 (diff)
downloadfocaccia-qemu-7f090ed7103df119fa33651ae15958ddb5863f56.tar.gz
focaccia-qemu-7f090ed7103df119fa33651ae15958ddb5863f56.zip
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>
Diffstat (limited to 'hw/m68k/next-cube.c')
0 files changed, 0 insertions, 0 deletions