]> Git Repo - qemu.git/commitdiff
acpi, mem-hotplug: use PC_DIMM_SLOT_PROP in acpi_memory_plug_cb().
authorTang Chen <[email protected]>
Thu, 26 Feb 2015 01:16:43 +0000 (09:16 +0800)
committerMichael S. Tsirkin <[email protected]>
Sun, 1 Mar 2015 17:33:14 +0000 (18:33 +0100)
Replace string "slot" in acpi_memory_plug_cb() with macro PC_DIMM_SLOT_PROP.

Reviewed-by: Igor Mammedov <[email protected]>
Signed-off-by: Tang Chen <[email protected]>
Signed-off-by: Zhu Guihua <[email protected]>
Reviewed-by: Michael S. Tsirkin <[email protected]>
Signed-off-by: Michael S. Tsirkin <[email protected]>
hw/acpi/memory_hotplug.c

index ed3924126f5b9368dd0e3876e73e2ddab2669540..c6580dabb76a36a3012b6f95aa31e78bbebaf9cd 100644 (file)
@@ -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);
This page took 0.026161 seconds and 4 git commands to generate.