]> err.no Git - linux-2.6/blobdiff - drivers/ide/ide-dma.c
ide-floppy: zero out the whole struct ide_atapi_pc on init
[linux-2.6] / drivers / ide / ide-dma.c
index 653b1ade13d315950a5b22efc54d69244d203fe4..7ee44f86bc5475065a962f8b2380cd0b86158d1b 100644 (file)
@@ -463,7 +463,7 @@ int ide_dma_setup(ide_drive_t *drive)
        }
 
        /* PRD table */
-       if (hwif->mmio)
+       if (hwif->host_flags & IDE_HFLAG_MMIO)
                writel(hwif->dmatable_dma,
                       (void __iomem *)(hwif->dma_base + ATA_DMA_TABLE_OFS));
        else
@@ -692,7 +692,7 @@ static int ide_tune_dma(ide_drive_t *drive)
        ide_hwif_t *hwif = drive->hwif;
        u8 speed;
 
-       if (noautodma || drive->nodma || (drive->id->capability & 1) == 0)
+       if (drive->nodma || (drive->id->capability & 1) == 0)
                return 0;
 
        /* consult the list of known "bad" drives */