diff options
author | Andreas Färber <afaerber@suse.de> | 2013-08-23 20:18:50 +0200 |
---|---|---|
committer | Andreas Färber <afaerber@suse.de> | 2013-08-30 20:14:39 +0200 |
commit | c6baf942e084e0bc40ee37c8d8672ac9c5ea270b (patch) | |
tree | 1386a03bcb0fd5248b3316043088675d81f45d7d /hw/ide/mmio.c | |
parent | 77cbb28a5b90dbd183e1139734bcc2ac9ecbdd6a (diff) |
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/mmio.c')
-rw-r--r-- | hw/ide/mmio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/ide/mmio.c b/hw/ide/mmio.c index d251ff983c..9f66a52599 100644 --- a/hw/ide/mmio.c +++ b/hw/ide/mmio.c @@ -137,7 +137,7 @@ static void mmio_ide_initfn(Object *obj) SysBusDevice *d = SYS_BUS_DEVICE(obj); MMIOState *s = MMIO_IDE(obj); - ide_bus_new(&s->bus, DEVICE(obj), 0, 2); + ide_bus_new(&s->bus, sizeof(s->bus), DEVICE(obj), 0, 2); sysbus_init_irq(d, &s->irq); } |