diff options
Diffstat (limited to 'drivers/ide/pci/jmicron.c')
-rw-r--r-- | drivers/ide/pci/jmicron.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/drivers/ide/pci/jmicron.c b/drivers/ide/pci/jmicron.c index 17490d255758..7bac87fb481a 100644 --- a/drivers/ide/pci/jmicron.c +++ b/drivers/ide/pci/jmicron.c | |||
@@ -92,17 +92,14 @@ static void jmicron_tuneproc(ide_drive_t *drive, u8 pio) | |||
92 | /** | 92 | /** |
93 | * jmicron_tune_chipset - set controller timings | 93 | * jmicron_tune_chipset - set controller timings |
94 | * @drive: Drive to set up | 94 | * @drive: Drive to set up |
95 | * @xferspeed: speed we want to achieve | 95 | * @speed: speed we want to achieve |
96 | * | 96 | * |
97 | * As the JMicron snoops for timings all we actually need to do is | 97 | * As the JMicron snoops for timings all we actually need to do is |
98 | * make sure we don't set an invalid mode. We do need to honour | 98 | * set the transfer mode on the device. |
99 | * the cable detect here. | ||
100 | */ | 99 | */ |
101 | 100 | ||
102 | static int jmicron_tune_chipset (ide_drive_t *drive, byte xferspeed) | 101 | static int jmicron_tune_chipset(ide_drive_t *drive, const u8 speed) |
103 | { | 102 | { |
104 | u8 speed = ide_rate_filter(drive, xferspeed); | ||
105 | |||
106 | return ide_config_drive_speed(drive, speed); | 103 | return ide_config_drive_speed(drive, speed); |
107 | } | 104 | } |
108 | 105 | ||