]> git.ipfire.org Git - thirdparty/qemu.git/blobdiff - include/hw/char/cadence_uart.h
sysbus: Convert to sysbus_realize() etc. with Coccinelle
[thirdparty/qemu.git] / include / hw / char / cadence_uart.h
index af80b6083b27e18ca9828b5f167673c9ef157157..ed7b58d31d48d6fd8bda1f6b83012a5114448dbd 100644 (file)
@@ -63,7 +63,7 @@ static inline DeviceState *cadence_uart_create(hwaddr addr,
     dev = qdev_new(TYPE_CADENCE_UART);
     s = SYS_BUS_DEVICE(dev);
     qdev_prop_set_chr(dev, "chardev", chr);
-    qdev_realize_and_unref(dev, NULL, &error_fatal);
+    sysbus_realize_and_unref(s, &error_fatal);
     sysbus_mmio_map(s, 0, addr);
     sysbus_connect_irq(s, 0, irq);