diff options
Diffstat (limited to 'drivers/ide/ide-lib.c')
-rw-r--r-- | drivers/ide/ide-lib.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/ide/ide-lib.c b/drivers/ide/ide-lib.c index 6e85bee0bef7..df29868209f3 100644 --- a/drivers/ide/ide-lib.c +++ b/drivers/ide/ide-lib.c | |||
@@ -277,7 +277,6 @@ EXPORT_SYMBOL_GPL(ide_pio_cycle_time); | |||
277 | * @drive: drive to consider | 277 | * @drive: drive to consider |
278 | * @mode_wanted: preferred mode | 278 | * @mode_wanted: preferred mode |
279 | * @max_mode: highest allowed mode | 279 | * @max_mode: highest allowed mode |
280 | * @d: PIO data | ||
281 | * | 280 | * |
282 | * This routine returns the recommended PIO settings for a given drive, | 281 | * This routine returns the recommended PIO settings for a given drive, |
283 | * based on the drive->id information and the ide_pio_blacklist[]. | 282 | * based on the drive->id information and the ide_pio_blacklist[]. |
@@ -286,7 +285,7 @@ EXPORT_SYMBOL_GPL(ide_pio_cycle_time); | |||
286 | * This is used by most chipset support modules when "auto-tuning". | 285 | * This is used by most chipset support modules when "auto-tuning". |
287 | */ | 286 | */ |
288 | 287 | ||
289 | u8 ide_get_best_pio_mode (ide_drive_t *drive, u8 mode_wanted, u8 max_mode, ide_pio_data_t *d) | 288 | u8 ide_get_best_pio_mode (ide_drive_t *drive, u8 mode_wanted, u8 max_mode) |
290 | { | 289 | { |
291 | int pio_mode; | 290 | int pio_mode; |
292 | struct hd_driveid* id = drive->id; | 291 | struct hd_driveid* id = drive->id; |
@@ -335,9 +334,6 @@ u8 ide_get_best_pio_mode (ide_drive_t *drive, u8 mode_wanted, u8 max_mode, ide_p | |||
335 | if (pio_mode > max_mode) | 334 | if (pio_mode > max_mode) |
336 | pio_mode = max_mode; | 335 | pio_mode = max_mode; |
337 | 336 | ||
338 | if (d) | ||
339 | d->pio_mode = pio_mode; | ||
340 | |||
341 | return pio_mode; | 337 | return pio_mode; |
342 | } | 338 | } |
343 | 339 | ||