aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Färber <afaerber@suse.de>2013-07-27 15:39:20 +0200
committerAndreas Färber <afaerber@suse.de>2013-07-29 21:07:02 +0200
commitf3d74d32e7285af2c7a289c02b948f8feccd95e1 (patch)
treef47721f2fdbfe5f13705baa64a857e3716e30dee
parent760d1d00b8148887003b0632da82dabab57d71f5 (diff)
downloadqemu-f3d74d32e7285af2c7a289c02b948f8feccd95e1.zip
qemu-f3d74d32e7285af2c7a289c02b948f8feccd95e1.tar.gz
qemu-f3d74d32e7285af2c7a289c02b948f8feccd95e1.tar.bz2
sysbus: Drop FROM_SYSBUS()
As a replacement, use your own macro based on OBJECT_CHECK(). Signed-off-by: Andreas Färber <afaerber@suse.de>
-rw-r--r--include/hw/sysbus.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/include/hw/sysbus.h b/include/hw/sysbus.h
index 8c17165..fbfc066 100644
--- a/include/hw/sysbus.h
+++ b/include/hw/sysbus.h
@@ -55,9 +55,6 @@ struct SysBusDevice {
pio_addr_t pio[QDEV_MAX_PIO];
};
-/* Macros to compensate for lack of type inheritance in C. */
-#define FROM_SYSBUS(type, dev) DO_UPCAST(type, busdev, dev)
-
void *sysbus_new(void);
void sysbus_init_mmio(SysBusDevice *dev, MemoryRegion *memory);
MemoryRegion *sysbus_mmio_get_region(SysBusDevice *dev, int n);