summaryrefslogtreecommitdiff
path: root/hw/ide/ahci.c
diff options
context:
space:
mode:
authorAndreas Färber <afaerber@suse.de>2013-08-23 20:18:50 +0200
committerAndreas Färber <afaerber@suse.de>2013-08-30 20:14:39 +0200
commitc6baf942e084e0bc40ee37c8d8672ac9c5ea270b (patch)
tree1386a03bcb0fd5248b3316043088675d81f45d7d /hw/ide/ahci.c
parent77cbb28a5b90dbd183e1139734bcc2ac9ecbdd6a (diff)
downloadqemu-c6baf942e084e0bc40ee37c8d8672ac9c5ea270b.tar.gz
qemu-c6baf942e084e0bc40ee37c8d8672ac9c5ea270b.tar.bz2
qemu-c6baf942e084e0bc40ee37c8d8672ac9c5ea270b.zip
ide: Pass size to ide_bus_new()
To be passed to qbus_create_inplace(). Reviewed-by: Wenchao Xia <xiawenc@linux.vnet.ibm.com> Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'hw/ide/ahci.c')
-rw-r--r--hw/ide/ahci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/ide/ahci.c b/hw/ide/ahci.c
index bba150fd74..a71a4ca47c 100644
--- a/hw/ide/ahci.c
+++ b/hw/ide/ahci.c
@@ -1175,7 +1175,7 @@ void ahci_init(AHCIState *s, DeviceState *qdev, AddressSpace *as, int ports)
for (i = 0; i < s->ports; i++) {
AHCIDevice *ad = &s->dev[i];
- ide_bus_new(&ad->port, qdev, i, 1);
+ ide_bus_new(&ad->port, sizeof(ad->port), qdev, i, 1);
ide_init2(&ad->port, irqs[i]);
ad->hba = s;