summary refs log tree commit diff stats
path: root/hw/watchdog.c
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2010-08-20 13:52:01 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2010-08-22 17:11:06 -0500
commit3329f07b7a8b919d4a5641611beb0671a2c381a2 (patch)
treeded5ec633b46ede61c76e65b8e2c28e633388edd /hw/watchdog.c
parentdfe795e71fcbf4f766353f2e76fe227b342fc605 (diff)
downloadfocaccia-qemu-3329f07b7a8b919d4a5641611beb0671a2c381a2.tar.gz
focaccia-qemu-3329f07b7a8b919d4a5641611beb0671a2c381a2.zip
QemuOpts: make most qemu_*_opts static
Switch tree to lookup-by-name using qemu_find_opts().
Also hook up virtfs options so qemu_find_opts works for them too.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/watchdog.c')
-rw-r--r--hw/watchdog.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/watchdog.c b/hw/watchdog.c
index aebb08a0ee..e9dd56e229 100644
--- a/hw/watchdog.c
+++ b/hw/watchdog.c
@@ -66,7 +66,7 @@ int select_watchdog(const char *p)
     QLIST_FOREACH(model, &watchdog_list, entry) {
         if (strcasecmp(model->wdt_name, p) == 0) {
             /* add the device */
-            opts = qemu_opts_create(&qemu_device_opts, NULL, 0);
+            opts = qemu_opts_create(qemu_find_opts("device"), NULL, 0);
             qemu_opt_set(opts, "driver", p);
             return 0;
         }