diff options
author | Marc-André Lureau | 2019-10-22 19:18:12 +0200 |
---|---|---|
committer | Marc-André Lureau | 2020-01-07 13:06:59 +0100 |
commit | 7e83a77f96ee18cb891f309dc617caa5e07ff51e (patch) | |
tree | df78acc9fdf3cf074a33ab19f6b7a6d21a9f8676 /include/hw/sysbus.h | |
parent | hw/display/sm501: Always map the UART0 (diff) | |
download | qemu-7e83a77f96ee18cb891f309dc617caa5e07ff51e.tar.gz qemu-7e83a77f96ee18cb891f309dc617caa5e07ff51e.tar.xz qemu-7e83a77f96ee18cb891f309dc617caa5e07ff51e.zip |
sysbus: remove unused sysbus_try_create*
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'include/hw/sysbus.h')
-rw-r--r-- | include/hw/sysbus.h | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/include/hw/sysbus.h b/include/hw/sysbus.h index 27e80881da..2eb0484388 100644 --- a/include/hw/sysbus.h +++ b/include/hw/sysbus.h @@ -117,8 +117,7 @@ void foreach_dynamic_sysbus_device(FindSysbusDeviceFunc *func, void *opaque); /* Legacy helper function for creating devices. */ DeviceState *sysbus_create_varargs(const char *name, hwaddr addr, ...); -DeviceState *sysbus_try_create_varargs(const char *name, - hwaddr addr, ...); + static inline DeviceState *sysbus_create_simple(const char *name, hwaddr addr, qemu_irq irq) @@ -126,11 +125,5 @@ static inline DeviceState *sysbus_create_simple(const char *name, return sysbus_create_varargs(name, addr, irq, NULL); } -static inline DeviceState *sysbus_try_create_simple(const char *name, - hwaddr addr, - qemu_irq irq) -{ - return sysbus_try_create_varargs(name, addr, irq, NULL); -} #endif /* HW_SYSBUS_H */ |