From f455e98cf437c7bb8f2b23888bbd302fef3a3b28 Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Fri, 28 Aug 2009 15:47:03 +0200 Subject: ide: pass down DriveInfo instead of BlockDriverState Signed-off-by: Gerd Hoffmann Signed-off-by: Anthony Liguori --- hw/ppc_prep.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'hw/ppc_prep.c') diff --git a/hw/ppc_prep.c b/hw/ppc_prep.c index 1cad17f6f8..c081d58351 100644 --- a/hw/ppc_prep.c +++ b/hw/ppc_prep.c @@ -563,7 +563,7 @@ static void ppc_prep_init (ram_addr_t ram_size, qemu_irq *i8259; int ppc_boot_device; DriveInfo *dinfo; - BlockDriverState *hd[MAX_IDE_BUS * MAX_IDE_DEVS]; + DriveInfo *hd[MAX_IDE_BUS * MAX_IDE_DEVS]; BlockDriverState *fd[MAX_FD]; sysctrl = qemu_mallocz(sizeof(sysctrl_t)); @@ -703,8 +703,7 @@ static void ppc_prep_init (ram_addr_t ram_size, } for(i = 0; i < MAX_IDE_BUS * MAX_IDE_DEVS; i++) { - dinfo = drive_get(IF_IDE, i / MAX_IDE_DEVS, i % MAX_IDE_DEVS); - hd[i] = dinfo ? dinfo->bdrv : NULL; + hd[i] = drive_get(IF_IDE, i / MAX_IDE_DEVS, i % MAX_IDE_DEVS); } for(i = 0; i < MAX_IDE_BUS; i++) { -- cgit v1.2.3