diff options
Diffstat (limited to 'drivers/ide/legacy/ht6560b.c')
-rw-r--r-- | drivers/ide/legacy/ht6560b.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/drivers/ide/legacy/ht6560b.c b/drivers/ide/legacy/ht6560b.c index c8f353b1296f..85d16812d902 100644 --- a/drivers/ide/legacy/ht6560b.c +++ b/drivers/ide/legacy/ht6560b.c | |||
@@ -203,19 +203,21 @@ static u8 ht_pio2timings(ide_drive_t *drive, u8 pio) | |||
203 | { | 203 | { |
204 | int active_time, recovery_time; | 204 | int active_time, recovery_time; |
205 | int active_cycles, recovery_cycles; | 205 | int active_cycles, recovery_cycles; |
206 | ide_pio_data_t d; | ||
207 | int bus_speed = system_bus_clock(); | 206 | int bus_speed = system_bus_clock(); |
208 | 207 | ||
209 | if (pio) { | 208 | if (pio) { |
210 | pio = ide_get_best_pio_mode(drive, pio, 5, &d); | 209 | unsigned int cycle_time; |
211 | 210 | ||
211 | pio = ide_get_best_pio_mode(drive, pio, 5, NULL); | ||
212 | cycle_time = ide_pio_cycle_time(drive, pio); | ||
213 | |||
212 | /* | 214 | /* |
213 | * Just like opti621.c we try to calculate the | 215 | * Just like opti621.c we try to calculate the |
214 | * actual cycle time for recovery and activity | 216 | * actual cycle time for recovery and activity |
215 | * according system bus speed. | 217 | * according system bus speed. |
216 | */ | 218 | */ |
217 | active_time = ide_pio_timings[pio].active_time; | 219 | active_time = ide_pio_timings[pio].active_time; |
218 | recovery_time = d.cycle_time | 220 | recovery_time = cycle_time |
219 | - active_time | 221 | - active_time |
220 | - ide_pio_timings[pio].setup_time; | 222 | - ide_pio_timings[pio].setup_time; |
221 | /* | 223 | /* |