From 17801c78fe01ddab7ae9092190d17cc77bd5ef66 Mon Sep 17 00:00:00 2001 From: Blue Swirl Date: Sat, 12 Feb 2011 22:25:26 +0000 Subject: fdc: make optional Ignore failure with fdc device creation. Signed-off-by: Blue Swirl --- hw/fdc.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'hw/fdc.h') diff --git a/hw/fdc.h b/hw/fdc.h index 3b2fb3b..09f73c6 100644 --- a/hw/fdc.h +++ b/hw/fdc.h @@ -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); } -- cgit v1.1