diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2007-10-16 16:29:54 -0400 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2007-10-16 16:29:54 -0400 |
commit | d3b90baf0924c13045c56c3d0a766f9374fe7a9e (patch) | |
tree | f0cc28da2304ea9912f882e99cb6c2723d1a9b43 /drivers/ide/pci/pdc202xx_old.c | |
parent | 8446f65988b48d19cf419aa4def9a9ccfed17b76 (diff) |
ide: remove drive->init_speed zeroing
Several host drivers used to reset drive->init_speed in their ->ide_dma_check
implementations which resulted in incorrect init speed being reported to the
user, fix it.
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers/ide/pci/pdc202xx_old.c')
-rw-r--r-- | drivers/ide/pci/pdc202xx_old.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/ide/pci/pdc202xx_old.c b/drivers/ide/pci/pdc202xx_old.c index 8c3e8cf36ec9..9847a4ff7d40 100644 --- a/drivers/ide/pci/pdc202xx_old.c +++ b/drivers/ide/pci/pdc202xx_old.c | |||
@@ -181,8 +181,6 @@ static void pdc_old_disable_66MHz_clock(ide_hwif_t *hwif) | |||
181 | 181 | ||
182 | static int pdc202xx_config_drive_xfer_rate (ide_drive_t *drive) | 182 | static int pdc202xx_config_drive_xfer_rate (ide_drive_t *drive) |
183 | { | 183 | { |
184 | drive->init_speed = 0; | ||
185 | |||
186 | if (ide_tune_dma(drive)) | 184 | if (ide_tune_dma(drive)) |
187 | return 0; | 185 | return 0; |
188 | 186 | ||