]> git.proxmox.com Git - mirror_qemu.git/blobdiff - hw/ppc/mac_newworld.c
ide: Update ide_drive_get to be HBA agnostic
[mirror_qemu.git] / hw / ppc / mac_newworld.c
index 1626db44ef6ad4d46b485c77f8ae148638d003b2..4094beb0ed5617d53eae9c02c3683f7cc64726bc 100644 (file)
@@ -400,7 +400,7 @@ static void ppc_core99_init(MachineState *machine)
     macio_init(macio, pic_mem, escc_bar);
 
     /* We only emulate 2 out of 3 IDE controllers for now */
-    ide_drive_get(hd, MAX_IDE_BUS);
+    ide_drive_get(hd, ARRAY_SIZE(hd));
 
     macio_ide = MACIO_IDE(object_resolve_path_component(OBJECT(macio),
                                                         "ide[0]"));