Commit 9b13ef9f authored by Blue Swirl's avatar Blue Swirl
Browse files

serial: make optional

Ignore failure with serial device creation.
Signed-off-by: default avatarBlue Swirl <>
parent e22cf21e
......@@ -21,7 +21,10 @@ static inline bool serial_isa_init(int index, CharDriverState *chr)
ISADevice *dev;
dev = isa_create("isa-serial");
dev = isa_try_create("isa-serial");
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) {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment