pci/pcie: convert PCIE hotplug to use hotplug-handler API
commita66e657e18cd9b70e9f57ae5512c07faf2bc508f
authorIgor Mammedov <imammedo@redhat.com>
Wed, 5 Feb 2014 15:36:51 +0000 (5 16:36 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 10 Feb 2014 08:27:00 +0000 (10 10:27 +0200)
tree0d9adfd4fbab2409645c7fff37eebab71a84f6ed
parent5d268704d7c2bc58c38b87d7d94804639ef100ec
pci/pcie: convert PCIE hotplug to use hotplug-handler API

Split pcie_cap_slot_hotplug() into hotplug/unplug callbacks
and register them as "hotplug-handler" interface implementation of
PCIE_SLOT device.

Replace pci_bus_hotplug() wiring with setting link on PCI BUS
"hotplug-handler" property to PCI_BRIDGE_DEV device.

Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/pci/pcie.c
hw/pci/pcie_port.c
include/hw/pci/pcie.h