From f3d74d32e7285af2c7a289c02b948f8feccd95e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20F=C3=A4rber?= Date: Sat, 27 Jul 2013 15:39:20 +0200 Subject: sysbus: Drop FROM_SYSBUS() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit As a replacement, use your own macro based on OBJECT_CHECK(). Signed-off-by: Andreas Färber --- include/hw/sysbus.h | 3 --- 1 file changed, 3 deletions(-) (limited to 'include/hw/sysbus.h') 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); -- cgit v1.2.3