]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/ide/pci/amd74xx.c
ide: add device flags
[linux-2.6-omap-h63xx.git] / drivers / ide / pci / amd74xx.c
index 824471f91bf5f739047e4f962f53605e9c466dee..7dbc692c84c3dc13ec777df6d1290cb64f62d561 100644 (file)
@@ -92,7 +92,7 @@ static void amd_set_drive(ide_drive_t *drive, const u8 speed)
 
        ide_timing_compute(drive, speed, &t, T, UT);
 
-       if (peer->present) {
+       if (peer->dev_flags & IDE_DFLAG_PRESENT) {
                ide_timing_compute(peer, peer->current_speed, &p, T, UT);
                ide_timing_merge(&p, &t, &t, IDE_TIMING_8BIT);
        }