summaryrefslogtreecommitdiffstats
path: root/hw/acpi
diff options
context:
space:
mode:
authorTang Chen <tangchen@cn.fujitsu.com>2015-02-26 09:16:43 +0800
committerMichael S. Tsirkin <mst@redhat.com>2015-03-01 18:33:14 +0100
commit1d51570166171cd85dfcd08b2eac2f02a3fda6fe (patch)
tree12be01cfd80d00275859d494b7aea68a3f5e52e2 /hw/acpi
parentf51074cdc6e750daa3b6df727d83449a7e42b391 (diff)
downloadhqemu-1d51570166171cd85dfcd08b2eac2f02a3fda6fe.zip
hqemu-1d51570166171cd85dfcd08b2eac2f02a3fda6fe.tar.gz
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>
Diffstat (limited to 'hw/acpi')
-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 ed39241..c6580da 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);
OpenPOWER on IntegriCloud