diff options
author | Blue Swirl | 2011-02-05 15:56:53 +0100 |
---|---|---|
committer | Blue Swirl | 2011-02-20 10:31:57 +0100 |
commit | 7353153891a9bbdbaa1672c37208effb5a09d715 (patch) | |
tree | 22054411c7f1d5b8573d13ce03de0e50f241b326 /hw/pc.h | |
parent | parallel: refactor device creation (diff) | |
download | qemu-7353153891a9bbdbaa1672c37208effb5a09d715.tar.gz qemu-7353153891a9bbdbaa1672c37208effb5a09d715.tar.xz qemu-7353153891a9bbdbaa1672c37208effb5a09d715.zip |
parallel: make optional
Ignore failure with parallel device creation.
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'hw/pc.h')
-rw-r--r-- | hw/pc.h | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -24,7 +24,10 @@ static inline bool parallel_init(int index, CharDriverState *chr) { ISADevice *dev; - dev = isa_create("isa-parallel"); + dev = isa_try_create("isa-parallel"); + if (!dev) { + return false; + } qdev_prop_set_uint32(&dev->qdev, "index", index); qdev_prop_set_chr(&dev->qdev, "chardev", chr); if (qdev_init(&dev->qdev) < 0) { |