]> Git Repo - qemu.git/blobdiff - device-hotplug.c
hw/display/blizzard.c: Delete unused function blizzard_rgb2yuv
[qemu.git] / device-hotplug.c
index ebfa6b1016d81d44f0292fc43494ea5e7fd64be1..e6a1ffb9fabe3748909c3618e955d1ad57c91071 100644 (file)
@@ -40,7 +40,7 @@ DriveInfo *add_init_drive(const char *optstr)
         return NULL;
 
     mc = MACHINE_GET_CLASS(current_machine);
-    dinfo = drive_init(opts, mc->qemu_machine->block_default_type);
+    dinfo = drive_new(opts, mc->block_default_type);
     if (!dinfo) {
         qemu_opts_del(opts);
         return NULL;
@@ -76,6 +76,6 @@ void drive_hot_add(Monitor *mon, const QDict *qdict)
 
 err:
     if (dinfo) {
-        drive_put_ref(dinfo);
+        drive_del(dinfo);
     }
 }
This page took 0.021917 seconds and 4 git commands to generate.