aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide/pci/pdc202xx_old.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ide/pci/pdc202xx_old.c')
-rw-r--r--drivers/ide/pci/pdc202xx_old.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/drivers/ide/pci/pdc202xx_old.c b/drivers/ide/pci/pdc202xx_old.c
index a6dd9c815342..23844687deea 100644
--- a/drivers/ide/pci/pdc202xx_old.c
+++ b/drivers/ide/pci/pdc202xx_old.c
@@ -181,23 +181,11 @@ static void pdc_old_disable_66MHz_clock(ide_hwif_t *hwif)
181 outb(clock & ~(hwif->channel ? 0x08 : 0x02), clock_reg); 181 outb(clock & ~(hwif->channel ? 0x08 : 0x02), clock_reg);
182} 182}
183 183
184static int config_chipset_for_dma (ide_drive_t *drive)
185{
186 u8 speed = ide_max_dma_mode(drive);
187
188 if (!speed)
189 return 0;
190
191 (void)pdc202xx_tune_chipset(drive, speed);
192
193 return ide_dma_enable(drive);
194}
195
196static int pdc202xx_config_drive_xfer_rate (ide_drive_t *drive) 184static int pdc202xx_config_drive_xfer_rate (ide_drive_t *drive)
197{ 185{
198 drive->init_speed = 0; 186 drive->init_speed = 0;
199 187
200 if (ide_use_dma(drive) && config_chipset_for_dma(drive)) 188 if (ide_tune_dma(drive))
201 return 0; 189 return 0;
202 190
203 if (ide_use_fast_pio(drive)) 191 if (ide_use_fast_pio(drive))