Skip to content

Commit

Permalink
pc: q35: acpi: report error to user on unsupported unplug request
Browse files Browse the repository at this point in the history
Signed-off-by: Igor Mammedov <[email protected]>
Reviewed-by: Michael S. Tsirkin <[email protected]>
Signed-off-by: Michael S. Tsirkin <[email protected]>
  • Loading branch information
Igor Mammedov authored and mstsirkin committed Jun 19, 2014
1 parent 292b163 commit 9d3cae6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions hw/isa/lpc_ich9.c
Original file line number Diff line number Diff line change
Expand Up @@ -610,6 +610,8 @@ static void ich9_device_plug_cb(HotplugHandler *hotplug_dev,
static void ich9_device_unplug_cb(HotplugHandler *hotplug_dev,
DeviceState *dev, Error **errp)
{
error_setg(errp, "acpi: device unplug request for not supported device"
" type: %s", object_get_typename(OBJECT(dev)));
}

static bool ich9_rst_cnt_needed(void *opaque)
Expand Down

0 comments on commit 9d3cae6

Please sign in to comment.