Revision 3329f07b hw/watchdog.c
b/hw/watchdog.c | ||
---|---|---|
66 | 66 |
QLIST_FOREACH(model, &watchdog_list, entry) { |
67 | 67 |
if (strcasecmp(model->wdt_name, p) == 0) { |
68 | 68 |
/* add the device */ |
69 |
opts = qemu_opts_create(&qemu_device_opts, NULL, 0);
|
|
69 |
opts = qemu_opts_create(qemu_find_opts("device"), NULL, 0);
|
|
70 | 70 |
qemu_opt_set(opts, "driver", p); |
71 | 71 |
return 0; |
72 | 72 |
} |
Also available in: Unified diff