diff options
author | Andreas Färber | 2013-08-23 20:07:28 +0200 |
---|---|---|
committer | Andreas Färber | 2013-08-30 20:14:38 +0200 |
commit | 77cbb28a5b90dbd183e1139734bcc2ac9ecbdd6a (patch) | |
tree | 4cafe128e6bdaec2e2f992782d73039f337c6b0e /hw/char/ipack.c | |
parent | intel-hda: Pass size to hda_codec_bus_init() (diff) | |
download | qemu-77cbb28a5b90dbd183e1139734bcc2ac9ecbdd6a.tar.gz qemu-77cbb28a5b90dbd183e1139734bcc2ac9ecbdd6a.tar.xz qemu-77cbb28a5b90dbd183e1139734bcc2ac9ecbdd6a.zip |
ipack: Pass size to ipack_bus_new_inplace()
To be passed to qbus_create_inplace().
Simplify DEVICE() cast to avoid parent field access.
Reviewed-by: Wenchao Xia <xiawenc@linux.vnet.ibm.com>
Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'hw/char/ipack.c')
-rw-r--r-- | hw/char/ipack.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/char/ipack.c b/hw/char/ipack.c index f890471db5..5fb70738f8 100644 --- a/hw/char/ipack.c +++ b/hw/char/ipack.c @@ -24,7 +24,8 @@ IPackDevice *ipack_device_find(IPackBus *bus, int32_t slot) return NULL; } -void ipack_bus_new_inplace(IPackBus *bus, DeviceState *parent, +void ipack_bus_new_inplace(IPackBus *bus, size_t bus_size, + DeviceState *parent, const char *name, uint8_t n_slots, qemu_irq_handler handler) { |