diff options
Diffstat (limited to 'drivers/ide/pci/it8213.c')
-rw-r--r-- | drivers/ide/pci/it8213.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/drivers/ide/pci/it8213.c b/drivers/ide/pci/it8213.c index 70b3245dbf62..6fa955749aec 100644 --- a/drivers/ide/pci/it8213.c +++ b/drivers/ide/pci/it8213.c | |||
@@ -115,20 +115,16 @@ static void it8213_tuneproc(ide_drive_t *drive, u8 pio) | |||
115 | /** | 115 | /** |
116 | * it8213_tune_chipset - set controller timings | 116 | * it8213_tune_chipset - set controller timings |
117 | * @drive: Drive to set up | 117 | * @drive: Drive to set up |
118 | * @xferspeed: speed we want to achieve | 118 | * @speed: speed we want to achieve |
119 | * | 119 | * |
120 | * Tune the ITE chipset for the desired mode. If we can't achieve | 120 | * Tune the ITE chipset for the desired mode. |
121 | * the desired mode then tune for a lower one, but ultimately | ||
122 | * make the thing work. | ||
123 | */ | 121 | */ |
124 | 122 | ||
125 | static int it8213_tune_chipset (ide_drive_t *drive, u8 xferspeed) | 123 | static int it8213_tune_chipset(ide_drive_t *drive, const u8 speed) |
126 | { | 124 | { |
127 | |||
128 | ide_hwif_t *hwif = HWIF(drive); | 125 | ide_hwif_t *hwif = HWIF(drive); |
129 | struct pci_dev *dev = hwif->pci_dev; | 126 | struct pci_dev *dev = hwif->pci_dev; |
130 | u8 maslave = 0x40; | 127 | u8 maslave = 0x40; |
131 | u8 speed = ide_rate_filter(drive, xferspeed); | ||
132 | int a_speed = 3 << (drive->dn * 4); | 128 | int a_speed = 3 << (drive->dn * 4); |
133 | int u_flag = 1 << drive->dn; | 129 | int u_flag = 1 << drive->dn; |
134 | int v_flag = 0x01 << drive->dn; | 130 | int v_flag = 0x01 << drive->dn; |