]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - drivers/ide/pci/sl82c105.c
ide: remove ide_dma_enable()
[mirror_ubuntu-bionic-kernel.git] / drivers / ide / pci / sl82c105.c
index 3d7759c361ff6a396516a28c312715b1ea95c92a..ac1ec170fd26a84d068abdd4f5a9f83cdbe50fc2 100644 (file)
@@ -158,21 +158,6 @@ static int sl82c105_tune_chipset(ide_drive_t *drive, u8 speed)
        return ide_config_drive_speed(drive, speed);
 }
 
-/*
- * Configure the drive for DMA.
- */
-static int config_for_dma(ide_drive_t *drive)
-{
-       u8 speed = ide_max_dma_mode(drive);
-
-       DBG(("config_for_dma(drive:%s)\n", drive->name));
-
-       if (!speed || sl82c105_tune_chipset(drive, speed))
-               return 0;
-
-       return ide_dma_enable(drive);
-}
-
 /*
  * Check to see if the drive and chipset are capable of DMA mode.
  */
@@ -180,7 +165,7 @@ static int sl82c105_ide_dma_check(ide_drive_t *drive)
 {
        DBG(("sl82c105_ide_dma_check(drive:%s)\n", drive->name));
 
-       if (ide_use_dma(drive) && config_for_dma(drive))
+       if (ide_tune_dma(drive))
                return 0;
 
        return -1;