summaryrefslogtreecommitdiffstats
path: root/hw/ide/qdev.c
diff options
context:
space:
mode:
authorMarkus Armbruster2015-12-10 17:29:15 +0100
committerMarkus Armbruster2016-01-13 11:58:58 +0100
commit6231a6da9f40c3a33589402c9c57557e3a4f05ad (patch)
tree0c1c237b996c8cd416b87e9771e651a42506b911 /hw/ide/qdev.c
parentUse error_fatal to simplify obvious fatal errors (diff)
downloadqemu-6231a6da9f40c3a33589402c9c57557e3a4f05ad.tar.gz
qemu-6231a6da9f40c3a33589402c9c57557e3a4f05ad.tar.xz
qemu-6231a6da9f40c3a33589402c9c57557e3a4f05ad.zip
hw: Inline the qdev_prop_set_drive_nofail() wrapper
Signed-off-by: Markus Armbruster <armbru@redhat.com> Message-Id: <1449764955-10741-3-git-send-email-armbru@redhat.com> Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
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 788b36133c..1f831098c7 100644
--- a/hw/ide/qdev.c
+++ b/hw/ide/qdev.c
@@ -118,7 +118,8 @@ IDEDevice *ide_create_drive(IDEBus *bus, int unit, DriveInfo *drive)
dev = qdev_create(&bus->qbus, drive->media_cd ? "ide-cd" : "ide-hd");
qdev_prop_set_uint32(dev, "unit", unit);
- qdev_prop_set_drive_nofail(dev, "drive", blk_by_legacy_dinfo(drive));
+ qdev_prop_set_drive(dev, "drive", blk_by_legacy_dinfo(drive),
+ &error_fatal);
qdev_init_nofail(dev);
return DO_UPCAST(IDEDevice, qdev, dev);
}