aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide/pci/piix.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ide/pci/piix.c')
-rw-r--r--drivers/ide/pci/piix.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/ide/pci/piix.c b/drivers/ide/pci/piix.c
index 85e8a78e10ad..caf606a1ee86 100644
--- a/drivers/ide/pci/piix.c
+++ b/drivers/ide/pci/piix.c
@@ -393,14 +393,12 @@ static int piix_config_drive_xfer_rate (ide_drive_t *drive)
393 if (ide_use_dma(drive) && piix_config_drive_for_dma(drive)) 393 if (ide_use_dma(drive) && piix_config_drive_for_dma(drive))
394 return hwif->ide_dma_on(drive); 394 return hwif->ide_dma_on(drive);
395 395
396 if (ide_use_fast_pio(drive)) { 396 if (ide_use_fast_pio(drive))
397 /* Find best PIO mode. */ 397 /* Find best PIO mode. */
398 (void) hwif->speedproc(drive, XFER_PIO_0 + 398 (void) hwif->speedproc(drive, XFER_PIO_0 +
399 ide_get_best_pio_mode(drive, 255, 4, NULL)); 399 ide_get_best_pio_mode(drive, 255, 4, NULL));
400 return hwif->ide_dma_off_quietly(drive); 400
401 } 401 return hwif->ide_dma_off_quietly(drive);
402 /* IORDY not supported */
403 return 0;
404} 402}
405 403
406/** 404/**