diff options
author | Blue Swirl <blauwirbel@gmail.com> | 2011-02-12 22:25:26 +0000 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2011-02-20 09:34:06 +0000 |
commit | 17801c78fe01ddab7ae9092190d17cc77bd5ef66 (patch) | |
tree | 8943d68d588669fa050ce226f133fcfbbf1dbbcf /hw/fdc.h | |
parent | 63ffb564dca94f8bda01ed6d209784104630a4d2 (diff) | |
download | qemu-17801c78fe01ddab7ae9092190d17cc77bd5ef66.zip qemu-17801c78fe01ddab7ae9092190d17cc77bd5ef66.tar.gz qemu-17801c78fe01ddab7ae9092190d17cc77bd5ef66.tar.bz2 |
fdc: make optional
Ignore failure with fdc device creation.
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'hw/fdc.h')
-rw-r--r-- | hw/fdc.h | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -11,7 +11,10 @@ static inline void fdctrl_init_isa(DriveInfo **fds) { ISADevice *dev; - dev = isa_create("isa-fdc"); + dev = isa_try_create("isa-fdc"); + if (!dev) { + return; + } if (fds[0]) { qdev_prop_set_drive_nofail(&dev->qdev, "driveA", fds[0]->bdrv); } |