aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide/pci/serverworks.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ide/pci/serverworks.c')
-rw-r--r--drivers/ide/pci/serverworks.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/ide/pci/serverworks.c b/drivers/ide/pci/serverworks.c
index a94e77d67db3..6234f806c6b5 100644
--- a/drivers/ide/pci/serverworks.c
+++ b/drivers/ide/pci/serverworks.c
@@ -270,22 +270,11 @@ static void svwks_tune_drive (ide_drive_t *drive, u8 pio)
270 (void)svwks_tune_chipset(drive, XFER_PIO_0 + pio); 270 (void)svwks_tune_chipset(drive, XFER_PIO_0 + pio);
271} 271}
272 272
273static int config_chipset_for_dma (ide_drive_t *drive)
274{
275 u8 speed = ide_max_dma_mode(drive);
276
277 if (!speed)
278 return 0;
279
280 (void) svwks_tune_chipset(drive, speed);
281 return ide_dma_enable(drive);
282}
283
284static int svwks_config_drive_xfer_rate (ide_drive_t *drive) 273static int svwks_config_drive_xfer_rate (ide_drive_t *drive)
285{ 274{
286 drive->init_speed = 0; 275 drive->init_speed = 0;
287 276
288 if (ide_use_dma(drive) && config_chipset_for_dma(drive)) 277 if (ide_tune_dma(drive))
289 return 0; 278 return 0;
290 279
291 if (ide_use_fast_pio(drive)) 280 if (ide_use_fast_pio(drive))