aboutsummaryrefslogtreecommitdiff
path: root/include/hw/sysbus.h
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 /include/hw/sysbus.h
parent760d1d00b8148887003b0632da82dabab57d71f5 (diff)
sysbus: Drop FROM_SYSBUS()
As a replacement, use your own macro based on OBJECT_CHECK(). Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'include/hw/sysbus.h')
-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 8c17165cf2..fbfc066a21 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);