diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2009-09-16 22:25:30 +0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-10-05 09:32:47 -0500 |
commit | 1f850f1064cfd30037fd76f688150a437164aaf2 (patch) | |
tree | d15452cb28b1604c2f4f9437be32e740ce8d14c2 /hw/ide/qdev.c | |
parent | b2317837f0dadd845b33d528a940adb658b669b9 (diff) |
switch ide bus to inplace allocation.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/ide/qdev.c')
-rw-r--r-- | hw/ide/qdev.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/hw/ide/qdev.c b/hw/ide/qdev.c index d467e3ad22..c562bc61a6 100644 --- a/hw/ide/qdev.c +++ b/hw/ide/qdev.c @@ -29,12 +29,9 @@ static struct BusInfo ide_bus_info = { .size = sizeof(IDEBus), }; -IDEBus *ide_bus_new(DeviceState *dev) +void ide_bus_new(IDEBus *idebus, DeviceState *dev) { - IDEBus *idebus; - - idebus = FROM_QBUS(IDEBus, qbus_create(&ide_bus_info, dev, NULL)); - return idebus; + qbus_create_inplace(&idebus->qbus, &ide_bus_info, dev, NULL); } static int ide_qdev_init(DeviceState *qdev, DeviceInfo *base) |