|
@@ -117,8 +117,7 @@ void foreach_dynamic_sysbus_device(FindSysbusDeviceFunc *func, void *opaque);
|
|
/* Legacy helper function for creating devices. */
|
|
/* Legacy helper function for creating devices. */
|
|
DeviceState *sysbus_create_varargs(const char *name,
|
|
DeviceState *sysbus_create_varargs(const char *name,
|
|
hwaddr addr, ...);
|
|
hwaddr addr, ...);
|
|
-DeviceState *sysbus_try_create_varargs(const char *name,
|
|
|
|
- hwaddr addr, ...);
|
|
|
|
|
|
+
|
|
static inline DeviceState *sysbus_create_simple(const char *name,
|
|
static inline DeviceState *sysbus_create_simple(const char *name,
|
|
hwaddr addr,
|
|
hwaddr addr,
|
|
qemu_irq irq)
|
|
qemu_irq irq)
|
|
@@ -126,11 +125,5 @@ static inline DeviceState *sysbus_create_simple(const char *name,
|
|
return sysbus_create_varargs(name, addr, irq, NULL);
|
|
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 */
|
|
#endif /* HW_SYSBUS_H */
|