diff options
Diffstat (limited to 'drivers/ide/pci/sis5513.c')
-rw-r--r-- | drivers/ide/pci/sis5513.c | 21 |
1 files changed, 1 insertions, 20 deletions
diff --git a/drivers/ide/pci/sis5513.c b/drivers/ide/pci/sis5513.c index 83c80ed73e99..41953fe4fa6b 100644 --- a/drivers/ide/pci/sis5513.c +++ b/drivers/ide/pci/sis5513.c | |||
@@ -638,32 +638,13 @@ static void sis5513_tune_drive (ide_drive_t *drive, u8 pio) | |||
638 | (void) config_chipset_for_pio(drive, pio); | 638 | (void) config_chipset_for_pio(drive, pio); |
639 | } | 639 | } |
640 | 640 | ||
641 | /* | ||
642 | * ((id->hw_config & 0x4000|0x2000) && (HWIF(drive)->udma_four)) | ||
643 | */ | ||
644 | static int config_chipset_for_dma (ide_drive_t *drive) | ||
645 | { | ||
646 | u8 speed = ide_max_dma_mode(drive); | ||
647 | |||
648 | #ifdef DEBUG | ||
649 | printk("SIS5513: config_chipset_for_dma, drive %d, ultra %x\n", | ||
650 | drive->dn, drive->id->dma_ultra); | ||
651 | #endif | ||
652 | |||
653 | if (!(speed)) | ||
654 | return 0; | ||
655 | |||
656 | sis5513_tune_chipset(drive, speed); | ||
657 | return ide_dma_enable(drive); | ||
658 | } | ||
659 | |||
660 | static int sis5513_config_xfer_rate(ide_drive_t *drive) | 641 | static int sis5513_config_xfer_rate(ide_drive_t *drive) |
661 | { | 642 | { |
662 | config_art_rwp_pio(drive, 5); | 643 | config_art_rwp_pio(drive, 5); |
663 | 644 | ||
664 | drive->init_speed = 0; | 645 | drive->init_speed = 0; |
665 | 646 | ||
666 | if (ide_use_dma(drive) && config_chipset_for_dma(drive)) | 647 | if (ide_tune_dma(drive)) |
667 | return 0; | 648 | return 0; |
668 | 649 | ||
669 | if (ide_use_fast_pio(drive)) | 650 | if (ide_use_fast_pio(drive)) |