summaryrefslogtreecommitdiffstats
path: root/drivers/ide/pci/alim15x3.c
diff options
context:
space:
mode:
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2007-10-16 22:29:54 +0200
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2007-10-16 22:29:54 +0200
commitd3b90baf0924c13045c56c3d0a766f9374fe7a9e (patch)
treef0cc28da2304ea9912f882e99cb6c2723d1a9b43 /drivers/ide/pci/alim15x3.c
parentau1xxx-ide: use ide_tune_dma() (diff)
downloadlinux-d3b90baf0924c13045c56c3d0a766f9374fe7a9e.tar.xz
linux-d3b90baf0924c13045c56c3d0a766f9374fe7a9e.zip
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/alim15x3.c')
-rw-r--r--drivers/ide/pci/alim15x3.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/ide/pci/alim15x3.c b/drivers/ide/pci/alim15x3.c
index 0b83443bf250..9582794eb65a 100644
--- a/drivers/ide/pci/alim15x3.c
+++ b/drivers/ide/pci/alim15x3.c
@@ -446,8 +446,6 @@ static void ali_set_dma_mode(ide_drive_t *drive, const u8 speed)
static int ali15x3_config_drive_for_dma(ide_drive_t *drive)
{
- drive->init_speed = 0;
-
if (ide_tune_dma(drive))
return 0;