mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-11 03:24:58 -06:00
hw: Remove device_legacy_reset()
The device_legacy_reset() function is now not used anywhere, so we can remove the implementation. Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
e5e887c73b
commit
c3141e21e3
3 changed files with 0 additions and 20 deletions
|
@ -868,16 +868,6 @@ void device_class_set_parent_unrealize(DeviceClass *dc,
|
||||||
dc->unrealize = dev_unrealize;
|
dc->unrealize = dev_unrealize;
|
||||||
}
|
}
|
||||||
|
|
||||||
void device_legacy_reset(DeviceState *dev)
|
|
||||||
{
|
|
||||||
DeviceClass *klass = DEVICE_GET_CLASS(dev);
|
|
||||||
|
|
||||||
trace_qdev_reset(dev, object_get_typename(OBJECT(dev)));
|
|
||||||
if (klass->reset) {
|
|
||||||
klass->reset(dev);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
Object *qdev_get_machine(void)
|
Object *qdev_get_machine(void)
|
||||||
{
|
{
|
||||||
static Object *dev;
|
static Object *dev;
|
||||||
|
|
|
@ -2,7 +2,6 @@
|
||||||
loader_write_rom(const char *name, uint64_t gpa, uint64_t size, bool isrom) "%s: @0x%"PRIx64" size=0x%"PRIx64" ROM=%d"
|
loader_write_rom(const char *name, uint64_t gpa, uint64_t size, bool isrom) "%s: @0x%"PRIx64" size=0x%"PRIx64" ROM=%d"
|
||||||
|
|
||||||
# qdev.c
|
# qdev.c
|
||||||
qdev_reset(void *obj, const char *objtype) "obj=%p(%s)"
|
|
||||||
qdev_update_parent_bus(void *obj, const char *objtype, void *oldp, const char *oldptype, void *newp, const char *newptype) "obj=%p(%s) old_parent=%p(%s) new_parent=%p(%s)"
|
qdev_update_parent_bus(void *obj, const char *objtype, void *oldp, const char *oldptype, void *newp, const char *newptype) "obj=%p(%s) old_parent=%p(%s) new_parent=%p(%s)"
|
||||||
|
|
||||||
# resettable.c
|
# resettable.c
|
||||||
|
|
|
@ -776,15 +776,6 @@ BusState *sysbus_get_default(void);
|
||||||
char *qdev_get_fw_dev_path(DeviceState *dev);
|
char *qdev_get_fw_dev_path(DeviceState *dev);
|
||||||
char *qdev_get_own_fw_dev_path_from_handler(BusState *bus, DeviceState *dev);
|
char *qdev_get_own_fw_dev_path_from_handler(BusState *bus, DeviceState *dev);
|
||||||
|
|
||||||
/**
|
|
||||||
* device_legacy_reset:
|
|
||||||
*
|
|
||||||
* Reset a single device (by calling the reset method).
|
|
||||||
* Note: This function is deprecated and will be removed when it becomes unused.
|
|
||||||
* Please use device_cold_reset() now.
|
|
||||||
*/
|
|
||||||
void device_legacy_reset(DeviceState *dev);
|
|
||||||
|
|
||||||
void device_class_set_props(DeviceClass *dc, Property *props);
|
void device_class_set_props(DeviceClass *dc, Property *props);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue