diff options
Diffstat (limited to 'drivers/ide/ide-lib.c')
-rw-r--r-- | drivers/ide/ide-lib.c | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/drivers/ide/ide-lib.c b/drivers/ide/ide-lib.c index 7e053d217732..efa5bfa64d01 100644 --- a/drivers/ide/ide-lib.c +++ b/drivers/ide/ide-lib.c | |||
@@ -188,29 +188,6 @@ static int ide_scan_pio_blacklist (char *model) | |||
188 | return -1; | 188 | return -1; |
189 | } | 189 | } |
190 | 190 | ||
191 | unsigned int ide_pio_cycle_time(ide_drive_t *drive, u8 pio) | ||
192 | { | ||
193 | struct hd_driveid *id = drive->id; | ||
194 | int cycle_time = 0; | ||
195 | |||
196 | if (id->field_valid & 2) { | ||
197 | if (id->capability & 8) | ||
198 | cycle_time = id->eide_pio_iordy; | ||
199 | else | ||
200 | cycle_time = id->eide_pio; | ||
201 | } | ||
202 | |||
203 | /* conservative "downgrade" for all pre-ATA2 drives */ | ||
204 | if (pio < 3) { | ||
205 | if (cycle_time && cycle_time < ide_pio_timings[pio].cycle_time) | ||
206 | cycle_time = 0; /* use standard timing */ | ||
207 | } | ||
208 | |||
209 | return cycle_time ? cycle_time : ide_pio_timings[pio].cycle_time; | ||
210 | } | ||
211 | |||
212 | EXPORT_SYMBOL_GPL(ide_pio_cycle_time); | ||
213 | |||
214 | /** | 191 | /** |
215 | * ide_get_best_pio_mode - get PIO mode from drive | 192 | * ide_get_best_pio_mode - get PIO mode from drive |
216 | * @drive: drive to consider | 193 | * @drive: drive to consider |