summaryrefslogtreecommitdiffstats
path: root/hw/ide/qdev.c
diff options
context:
space:
mode:
authorAndreas Färber2013-08-23 20:18:50 +0200
committerAndreas Färber2013-08-30 20:14:39 +0200
commitc6baf942e084e0bc40ee37c8d8672ac9c5ea270b (patch)
tree1386a03bcb0fd5248b3316043088675d81f45d7d /hw/ide/qdev.c
parentipack: Pass size to ipack_bus_new_inplace() (diff)
downloadqemu-c6baf942e084e0bc40ee37c8d8672ac9c5ea270b.tar.gz
qemu-c6baf942e084e0bc40ee37c8d8672ac9c5ea270b.tar.xz
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/qdev.c')
-rw-r--r--hw/ide/qdev.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/ide/qdev.c b/hw/ide/qdev.c
index 1d84e15378..8be76ab668 100644
--- a/hw/ide/qdev.c
+++ b/hw/ide/qdev.c
@@ -47,7 +47,8 @@ static const TypeInfo ide_bus_info = {
.class_init = ide_bus_class_init,
};
-void ide_bus_new(IDEBus *idebus, DeviceState *dev, int bus_id, int max_units)
+void ide_bus_new(IDEBus *idebus, size_t idebus_size, DeviceState *dev,
+ int bus_id, int max_units)
{
qbus_create_inplace(&idebus->qbus, TYPE_IDE_BUS, dev, NULL);
idebus->bus_id = bus_id;