pc: ich9 lpc: make it work with global/compat properties
commitd6b38b661135ceacfc4c3dd9c085f80751465e4f
authorIgor Mammedov <imammedo@redhat.com>
Mon, 2 Jun 2014 13:25:21 +0000 (2 15:25 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 19 Jun 2014 13:41:50 +0000 (19 16:41 +0300)
treeed0ddc78bbf95bfbf15a18c787dbcc313d91a1b7
parent34774320c3b05287a06775c31578bd1e2cb20b83
pc: ich9 lpc: make it work with global/compat properties

Propeties of object should be available after its instances_init()
callback is finished and not added in PCIDeviceClass.init which is
roughly corresponds to realize() method.
Moving properties adding into instances_init will fix missing
property error when global/compat property mechanism is used.

Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Acked-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/isa/lpc_ich9.c