From: Blue Swirl Date: Sat, 12 Feb 2011 22:25:26 +0000 (+0000) Subject: fdc: make optional X-Git-Tag: Tizen_Studio_1.3_Release_p2.3.1~3492 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=110f9133491b9f80fe32478a36116b47e954a41b;p=sdk%2Femulator%2Fqemu.git fdc: make optional Ignore failure with fdc device creation. Signed-off-by: Blue Swirl --- diff --git a/hw/fdc.h b/hw/fdc.h index 3b2fb3b248..09f73c6a9f 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); }