summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTang Chen2015-02-26 02:16:43 +0100
committerMichael S. Tsirkin2015-03-01 18:33:14 +0100
commit1d51570166171cd85dfcd08b2eac2f02a3fda6fe (patch)
tree12be01cfd80d00275859d494b7aea68a3f5e52e2
parentpci-hotplug-old: Has been dead for five major releases, bury (diff)
downloadqemu-1d51570166171cd85dfcd08b2eac2f02a3fda6fe.tar.gz
qemu-1d51570166171cd85dfcd08b2eac2f02a3fda6fe.tar.xz
qemu-1d51570166171cd85dfcd08b2eac2f02a3fda6fe.zip
acpi, mem-hotplug: use PC_DIMM_SLOT_PROP in acpi_memory_plug_cb().
Replace string "slot" in acpi_memory_plug_cb() with macro PC_DIMM_SLOT_PROP. Reviewed-by: Igor Mammedov <imammedo@redhat.com> Signed-off-by: Tang Chen <tangchen@cn.fujitsu.com> Signed-off-by: Zhu Guihua <zhugh.fnst@cn.fujitsu.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
-rw-r--r--hw/acpi/memory_hotplug.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/acpi/memory_hotplug.c b/hw/acpi/memory_hotplug.c
index ed3924126f..c6580dabb7 100644
--- a/hw/acpi/memory_hotplug.c
+++ b/hw/acpi/memory_hotplug.c
@@ -168,7 +168,8 @@ void acpi_memory_plug_cb(ACPIREGS *ar, qemu_irq irq, MemHotplugState *mem_st,
{
MemStatus *mdev;
Error *local_err = NULL;
- int slot = object_property_get_int(OBJECT(dev), "slot", &local_err);
+ int slot = object_property_get_int(OBJECT(dev), PC_DIMM_SLOT_PROP,
+ &local_err);
if (local_err) {
error_propagate(errp, local_err);