mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 23:33:54 -06:00
qdev: hotplug: drop HotplugHandler.post_plug callback
as nvdimm acpi is okay to build fit when the nvdimm device has not been 'realized' Suggested-by: Igor Mammedov <imammedo@redhat.com> Signed-off-by: Xiao Guangrong <guangrong.xiao@linux.intel.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com> Reviewed-by: Igor Mammedov <imammedo@redhat.com>
This commit is contained in:
parent
0d34fbabc1
commit
c7f8d0f3a5
5 changed files with 10 additions and 63 deletions
|
@ -47,7 +47,6 @@ typedef void (*hotplug_fn)(HotplugHandler *plug_handler,
|
|||
* @parent: Opaque parent interface.
|
||||
* @pre_plug: pre plug callback called at start of device.realize(true)
|
||||
* @plug: plug callback called at end of device.realize(true).
|
||||
* @post_pug: post plug callback called after device is successfully plugged.
|
||||
* @unplug_request: unplug request callback.
|
||||
* Used as a means to initiate device unplug for devices that
|
||||
* require asynchronous unplug handling.
|
||||
|
@ -62,7 +61,6 @@ typedef struct HotplugHandlerClass {
|
|||
/* <public> */
|
||||
hotplug_fn pre_plug;
|
||||
hotplug_fn plug;
|
||||
hotplug_fn post_plug;
|
||||
hotplug_fn unplug_request;
|
||||
hotplug_fn unplug;
|
||||
} HotplugHandlerClass;
|
||||
|
@ -85,15 +83,6 @@ void hotplug_handler_pre_plug(HotplugHandler *plug_handler,
|
|||
DeviceState *plugged_dev,
|
||||
Error **errp);
|
||||
|
||||
/**
|
||||
* hotplug_handler_post_plug:
|
||||
*
|
||||
* Call #HotplugHandlerClass.post_plug callback of @plug_handler.
|
||||
*/
|
||||
void hotplug_handler_post_plug(HotplugHandler *plug_handler,
|
||||
DeviceState *plugged_dev,
|
||||
Error **errp);
|
||||
|
||||
/**
|
||||
* hotplug_handler_unplug_request:
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue