Patchwork [qom-next,for-1.6,01/11] sysbus: Drop FROM_SYSBUS()

login
register
mail settings
Submitter Andreas Färber
Date July 27, 2013, 8:19 p.m.
Message ID <1374956396-25586-2-git-send-email-afaerber@suse.de>
Download mbox | patch
Permalink /patch/262528/
State New
Headers show

Comments

Andreas Färber - July 27, 2013, 8:19 p.m.
As a replacement, use your own macro based on OBJECT_CHECK().

Signed-off-by: Andreas Färber <afaerber@suse.de>
---
 include/hw/sysbus.h | 3 ---
 1 file changed, 3 deletions(-)

Patch

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);