diff options
Diffstat (limited to 'drivers/ide/pci/sl82c105.c')
-rw-r--r-- | drivers/ide/pci/sl82c105.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/ide/pci/sl82c105.c b/drivers/ide/pci/sl82c105.c index 0947cab00595..9f425b0b5721 100644 --- a/drivers/ide/pci/sl82c105.c +++ b/drivers/ide/pci/sl82c105.c | |||
@@ -113,7 +113,7 @@ static u8 sl82c105_tune_pio(ide_drive_t *drive, u8 pio) | |||
113 | /* | 113 | /* |
114 | * Configure the drive and chipset for a new transfer speed. | 114 | * Configure the drive and chipset for a new transfer speed. |
115 | */ | 115 | */ |
116 | static int sl82c105_tune_chipset(ide_drive_t *drive, u8 speed) | 116 | static int sl82c105_tune_chipset(ide_drive_t *drive, const u8 speed) |
117 | { | 117 | { |
118 | static u16 mwdma_timings[] = {0x0707, 0x0201, 0x0200}; | 118 | static u16 mwdma_timings[] = {0x0707, 0x0201, 0x0200}; |
119 | u16 drv_ctrl; | 119 | u16 drv_ctrl; |
@@ -121,8 +121,6 @@ static int sl82c105_tune_chipset(ide_drive_t *drive, u8 speed) | |||
121 | DBG(("sl82c105_tune_chipset(drive:%s, speed:%s)\n", | 121 | DBG(("sl82c105_tune_chipset(drive:%s, speed:%s)\n", |
122 | drive->name, ide_xfer_verbose(speed))); | 122 | drive->name, ide_xfer_verbose(speed))); |
123 | 123 | ||
124 | speed = ide_rate_filter(drive, speed); | ||
125 | |||
126 | switch (speed) { | 124 | switch (speed) { |
127 | case XFER_MW_DMA_2: | 125 | case XFER_MW_DMA_2: |
128 | case XFER_MW_DMA_1: | 126 | case XFER_MW_DMA_1: |