aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide/cris
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ide/cris')
-rw-r--r--drivers/ide/cris/ide-cris.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/ide/cris/ide-cris.c b/drivers/ide/cris/ide-cris.c
index e08782ac88e0..67cec8916fcd 100644
--- a/drivers/ide/cris/ide-cris.c
+++ b/drivers/ide/cris/ide-cris.c
@@ -722,12 +722,10 @@ static void tune_cris_ide(ide_drive_t *drive, u8 pio)
722 (void)ide_config_drive_speed(drive, XFER_PIO_0 + pio); 722 (void)ide_config_drive_speed(drive, XFER_PIO_0 + pio);
723} 723}
724 724
725static int speed_cris_ide(ide_drive_t *drive, u8 speed) 725static int speed_cris_ide(ide_drive_t *drive, const u8 speed)
726{ 726{
727 int cyc = 0, dvs = 0, strobe = 0, hold = 0; 727 int cyc = 0, dvs = 0, strobe = 0, hold = 0;
728 728
729 speed = ide_rate_filter(drive, speed);
730
731 if (speed >= XFER_PIO_0 && speed <= XFER_PIO_4) { 729 if (speed >= XFER_PIO_0 && speed <= XFER_PIO_4) {
732 tune_cris_ide(drive, speed - XFER_PIO_0); 730 tune_cris_ide(drive, speed - XFER_PIO_0);
733 return ide_config_drive_speed(drive, speed); 731 return ide_config_drive_speed(drive, speed);