ide: dynamic allocation of device structures
[deliverable/linux.git] / drivers / ide / ide-proc.c
index d985a9ec6befd87c8c0b247c5109886dedfa941c..1dc827fa7061c7466fb9c4af5b6994f8f0423359 100644 (file)
@@ -599,7 +599,7 @@ void ide_proc_port_register_devices(ide_hwif_t *hwif)
        char name[64];
 
        for (d = 0; d < MAX_DRIVES; d++) {
-               ide_drive_t *drive = &hwif->drives[d];
+               ide_drive_t *drive = hwif->devices[d];
 
                if ((drive->dev_flags & IDE_DFLAG_PRESENT) == 0 || drive->proc)
                        continue;
This page took 0.025418 seconds and 5 git commands to generate.