]> git.proxmox.com Git - qemu.git/blobdiff - hw/device-hotplug.c
vmstate: port stellaris gptm
[qemu.git] / hw / device-hotplug.c
index 9cc837669168339a7a463b4dcbf44aad0cd68a1b..8b2ed7a492f4f719ab947bcabd131f718c78269a 100644 (file)
 #include "hw.h"
 #include "boards.h"
 #include "net.h"
-#include "block_int.h"
-#include "sysemu.h"
+#include "blockdev.h"
 
 DriveInfo *add_init_drive(const char *optstr)
 {
-    int fatal_error;
     DriveInfo *dinfo;
     QemuOpts *opts;
 
-    opts = drive_add(NULL, "%s", optstr);
+    opts = drive_def(optstr);
     if (!opts)
         return NULL;
 
-    dinfo = drive_init(opts, current_machine, &fatal_error);
+    dinfo = drive_init(opts, current_machine->use_scsi);
     if (!dinfo) {
         qemu_opts_del(opts);
         return NULL;