aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide/pci/sis5513.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ide/pci/sis5513.c')
-rw-r--r--drivers/ide/pci/sis5513.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/ide/pci/sis5513.c b/drivers/ide/pci/sis5513.c
index 1da037f1394e..fed582b4b32f 100644
--- a/drivers/ide/pci/sis5513.c
+++ b/drivers/ide/pci/sis5513.c
@@ -531,15 +531,12 @@ static void sis5513_tuneproc(ide_drive_t *drive, u8 pio)
531 (void)sis5513_tune_drive(drive, pio); 531 (void)sis5513_tune_drive(drive, pio);
532} 532}
533 533
534static int sis5513_tune_chipset (ide_drive_t *drive, u8 xferspeed) 534static int sis5513_tune_chipset(ide_drive_t *drive, const u8 speed)
535{ 535{
536 ide_hwif_t *hwif = HWIF(drive); 536 ide_hwif_t *hwif = HWIF(drive);
537 struct pci_dev *dev = hwif->pci_dev; 537 struct pci_dev *dev = hwif->pci_dev;
538
539 u8 drive_pci, reg, speed;
540 u32 regdw; 538 u32 regdw;
541 539 u8 drive_pci, reg;
542 speed = ide_rate_filter(drive, xferspeed);
543 540
544 /* See config_art_rwp_pio for drive pci config registers */ 541 /* See config_art_rwp_pio for drive pci config registers */
545 drive_pci = 0x40; 542 drive_pci = 0x40;