* [Qemu-devel] [PATCH 10/10] fdc: make optional
@ 2011-02-12 22:44 Blue Swirl
0 siblings, 0 replies; only message in thread
From: Blue Swirl @ 2011-02-12 22:44 UTC (permalink / raw)
To: qemu-devel
[-- Attachment #1: Type: text/plain, Size: 582 bytes --]
Ignore failure with fdc device creation.
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
---
hw/fdc.h | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
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);
}
--
1.6.2.4
[-- Attachment #2: 0010-fdc-make-optional.patch --]
[-- Type: application/mbox, Size: 1050 bytes --]
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2011-02-12 22:45 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-12 22:44 [Qemu-devel] [PATCH 10/10] fdc: make optional Blue Swirl
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).