]> git.proxmox.com Git - qemu.git/blobdiff - hw/qdev.c
qemu-option: Move the implied first name into QemuOptsList
[qemu.git] / hw / qdev.c
index 5d0990ddd93956af8b21bfca79fa24493f685973..64cabd55a270642953afd58961c27bc0995df721 100644 (file)
--- a/hw/qdev.c
+++ b/hw/qdev.c
@@ -767,7 +767,7 @@ void do_device_add(Monitor *mon, const QDict *qdict)
     QemuOpts *opts;
 
     opts = qemu_opts_parse(&qemu_device_opts,
-                           qdict_get_str(qdict, "config"), "driver");
+                           qdict_get_str(qdict, "config"), 1);
     if (opts) {
         if (qdev_device_help(opts) || qdev_device_add(opts) == NULL) {
             qemu_opts_del(opts);