Revision c7e4e8ce

b/hw/qdev.c
766 766
{
767 767
    QemuOpts *opts;
768 768

  
769
    opts = qemu_opts_parse(&qemu_device_opts,
770
                           qdict_get_str(qdict, "config"), 1);
769
    opts = qemu_opts_from_qdict(&qemu_device_opts, qdict);
771 770
    if (opts) {
772 771
        if (qdev_device_help(opts) || qdev_device_add(opts) == NULL) {
773 772
            qemu_opts_del(opts);
b/qemu-monitor.hx
570 570

  
571 571
    {
572 572
        .name       = "device_add",
573
        .args_type  = "config:s",
574
        .params     = "device",
573
        .args_type  = "device:O",
574
        .params     = "driver[,prop=value][,...]",
575 575
        .help       = "add device, like -device on the command line",
576 576
        .mhandler.cmd = do_device_add,
577 577
    },

Also available in: Unified diff