diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2009-09-22 13:53:18 +0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-10-05 09:32:49 -0500 |
commit | fd8014e132f7ce794cc7c913b583c7b2d0f747af (patch) | |
tree | 0b8f1e7dd34ddae1dd699c04e85ace7ded1b11a0 /hw/mips_jazz.c | |
parent | ef80b466230021da9fe490175cd542a58dcabe94 (diff) |
floppy: add drive properties.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/mips_jazz.c')
-rw-r--r-- | hw/mips_jazz.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/hw/mips_jazz.c b/hw/mips_jazz.c index 2a70b8bec6..9578f28a48 100644 --- a/hw/mips_jazz.c +++ b/hw/mips_jazz.c @@ -126,7 +126,7 @@ void mips_jazz_init (ram_addr_t ram_size, int s_rtc, s_dma_dummy; NICInfo *nd; PITState *pit; - BlockDriverState *fds[MAX_FD]; + DriveInfo *fds[MAX_FD]; qemu_irq esp_reset; ram_addr_t ram_offset; ram_addr_t bios_offset; @@ -234,8 +234,7 @@ void mips_jazz_init (ram_addr_t ram_size, exit(1); } for (n = 0; n < MAX_FD; n++) { - DriveInfo *dinfo = drive_get(IF_FLOPPY, 0, n); - fds[n] = dinfo ? dinfo->bdrv : NULL; + fds[n] = drive_get(IF_FLOPPY, 0, n); } fdctrl_init_sysbus(rc4030[1], 0, 0x80003000, fds); |