summary refs log tree commit diff stats
path: root/hw/ide/piix.c
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2014-02-24 16:12:55 +0000
committerPeter Maydell <peter.maydell@linaro.org>2014-02-24 16:12:55 +0000
commitc58e291591dbc1c846fa152d4792554803405ebb (patch)
tree7ecea8fea0dda60ba8b702abd5d1d35dcca0ef5c /hw/ide/piix.c
parent6dedf0522c3fdeb10fe27d4aef35f4c57f3d0806 (diff)
parent58da5b1e01a586eb5a52ba3eec342d6828269839 (diff)
downloadfocaccia-qemu-c58e291591dbc1c846fa152d4792554803405ebb.tar.gz
focaccia-qemu-c58e291591dbc1c846fa152d4792554803405ebb.zip
Merge remote-tracking branch 'remotes/sstabellini/xen-140220' into staging
* remotes/sstabellini/xen-140220:
  xen_disk: fix io accounting
  Call pci_piix3_xen_ide_unplug from unplug_disks

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'hw/ide/piix.c')
-rw-r--r--hw/ide/piix.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/hw/ide/piix.c b/hw/ide/piix.c
index 0eda301ba9..40757eb001 100644
--- a/hw/ide/piix.c
+++ b/hw/ide/piix.c
@@ -167,7 +167,7 @@ static int pci_piix_ide_initfn(PCIDevice *dev)
     return 0;
 }
 
-static int pci_piix3_xen_ide_unplug(DeviceState *dev)
+int pci_piix3_xen_ide_unplug(DeviceState *dev)
 {
     PCIIDEState *pci_ide;
     DriveInfo *di;
@@ -266,7 +266,6 @@ static void piix3_ide_xen_class_init(ObjectClass *klass, void *data)
     k->device_id = PCI_DEVICE_ID_INTEL_82371SB_1;
     k->class_id = PCI_CLASS_STORAGE_IDE;
     set_bit(DEVICE_CATEGORY_STORAGE, dc->categories);
-    dc->unplug = pci_piix3_xen_ide_unplug;
 }
 
 static const TypeInfo piix3_ide_xen_info = {