~ubuntu-branches/ubuntu/natty/qemu-linaro/natty

« back to all changes in this revision

Viewing changes to hw/pci-hotplug.c

  • Committer: Package Import Robot
  • Author(s): Steve Langasek, Loïc Minier, Steve Langasek
  • Date: 2011-03-07 22:55:03 UTC
  • Revision ID: package-import@ubuntu.com-20110307225503-3opjapw0ksg7glo6
[ Loïc Minier ]
* Also pass -fno-var-tracking on armhf.

[ Steve Langasek ]
* New upstream release.
* Build with -marm on armel/armhf; Peter Maydell reports that building for
  Thumb-2 gives an emulator that doesn't work.
* Add support for cross-compiling the package.

Show diffs side-by-side

added added

removed removed

Lines of Context:
90
90
     * specified).
91
91
     */
92
92
    dinfo->unit = qemu_opt_get_number(dinfo->opts, "unit", -1);
 
93
    dinfo->bus = scsibus->busnr;
93
94
    scsidev = scsi_bus_legacy_add_drive(scsibus, dinfo->bdrv, dinfo->unit, false);
94
95
    if (!scsidev) {
95
96
        return -1;
146
147
 
147
148
err:
148
149
    if (dinfo)
149
 
        drive_uninit(dinfo);
 
150
        drive_put_ref(dinfo);
150
151
    return;
151
152
}
152
153