From 1356b98d3e95a85071e6bf9a99e8799e1ae1bbee Mon Sep 17 00:00:00 2001 From: Andreas Färber Date: Sun, 20 Jan 2013 02:47:33 +0100 Subject: sysbus: Drop sysbus_from_qdev() cast macro MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Replace by SYS_BUS_DEVICE() QOM cast macro using a scripted conversion. Avoids the old macro creeping into new code. Resolve a Coding Style warning in openpic code. Signed-off-by: Andreas Färber Cc: Anthony Liguori Signed-off-by: Anthony Liguori --- hw/imx_serial.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hw/imx_serial.c') diff --git a/hw/imx_serial.c b/hw/imx_serial.c index 77ed693a0..2d8253e0e 100644 --- a/hw/imx_serial.c +++ b/hw/imx_serial.c @@ -425,7 +425,7 @@ void imx_serial_create(int uart, const hwaddr addr, qemu_irq irq) } qdev_prop_set_chr(dev, "chardev", chr); - bus = sysbus_from_qdev(dev); + bus = SYS_BUS_DEVICE(dev); qdev_init_nofail(dev); if (addr != (hwaddr)-1) { sysbus_mmio_map(bus, 0, addr); -- cgit v1.2.3