]> Git Repo - qemu.git/commit
pci: split shpc_cleanup and shpc_free
authorPaolo Bonzini <[email protected]>
Thu, 12 Feb 2015 20:39:20 +0000 (21:39 +0100)
committerPaolo Bonzini <[email protected]>
Mon, 16 Feb 2015 16:30:14 +0000 (17:30 +0100)
commit5cd5e7015962d8d559afb5154888fd34a8526ddd
tree071ec5fb47bd2a5a902bc0f4bcd320dd1354e5bd
parent3a8f2a9ce51036ab2d25bcc31114b5cbb72ab44b
pci: split shpc_cleanup and shpc_free

object_unparent should not be called until the parent device is going to be
destroyed.  Only remove the capability and do memory_region_del_subregion
at unrealize time.  Freeing the data structures is left in shpc_free, to
be called from the instance_finalize callback.

Acked-by: Michael S. Tsirkin <[email protected]>
Reviewed-by: Matthew Rosato <[email protected]>
Reviewed-by: Michael S. Tsirkin <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
hw/pci-bridge/pci_bridge_dev.c
hw/pci/shpc.c
include/hw/pci/shpc.h
This page took 0.027324 seconds and 4 git commands to generate.