]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - drivers/ide/pci/pdc202xx_old.c
ide: use ide_tune_dma() part #2
[karo-tx-linux.git] / drivers / ide / pci / pdc202xx_old.c
index a6dd9c815342b16ab2bcbedc2f4f6e72922c2fea..23844687deea90a8d8a33efcb5486d7fabcb74df 100644 (file)
@@ -181,23 +181,11 @@ static void pdc_old_disable_66MHz_clock(ide_hwif_t *hwif)
        outb(clock & ~(hwif->channel ? 0x08 : 0x02), clock_reg);
 }
 
-static int config_chipset_for_dma (ide_drive_t *drive)
-{
-       u8 speed = ide_max_dma_mode(drive);
-
-       if (!speed)
-               return 0;
-
-       (void)pdc202xx_tune_chipset(drive, speed);
-
-       return ide_dma_enable(drive);
-}
-
 static int pdc202xx_config_drive_xfer_rate (ide_drive_t *drive)
 {
        drive->init_speed = 0;
 
-       if (ide_use_dma(drive) && config_chipset_for_dma(drive))
+       if (ide_tune_dma(drive))
                return 0;
 
        if (ide_use_fast_pio(drive))