]> rtime.felk.cvut.cz Git - lisovros/qemu_apohw.git/commit
acpi/piix4pm: convert ACPI PCI hotplug to use hotplug-handler API
authorIgor Mammedov <imammedo@redhat.com>
Wed, 5 Feb 2014 15:36:49 +0000 (16:36 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 10 Feb 2014 08:27:00 +0000 (10:27 +0200)
commitc24d5e0b91d138f8cc95f5694d4964de36a739d3
tree200c67b94eddeb1dd136ce02004b80d6e1a0589f
parent2897ae026758eac78284ba6c3bd7732f3a1d9987
acpi/piix4pm: convert ACPI PCI hotplug to use hotplug-handler API

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

Replace pci_bus_hotplug() wiring with setting link on
PCI BUS "hotplug-handler" property to PIIX4_PM 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/acpi/pcihp.c
hw/acpi/piix4.c
include/hw/acpi/acpi.h
include/hw/acpi/pcihp.h