diff options
Diffstat (limited to 'drivers/ide/ide-disk.c')
-rw-r--r-- | drivers/ide/ide-disk.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/ide/ide-disk.c b/drivers/ide/ide-disk.c index 806760d24cef..0f196e5fcff3 100644 --- a/drivers/ide/ide-disk.c +++ b/drivers/ide/ide-disk.c | |||
@@ -160,8 +160,6 @@ static ide_startstop_t __ide_do_rw_disk(ide_drive_t *drive, struct request *rq, | |||
160 | task.tf_flags |= IDE_TFLAG_WRITE; | 160 | task.tf_flags |= IDE_TFLAG_WRITE; |
161 | 161 | ||
162 | ide_tf_set_cmd(drive, &task, dma); | 162 | ide_tf_set_cmd(drive, &task, dma); |
163 | if (!dma) | ||
164 | hwif->data_phase = task.data_phase; | ||
165 | task.rq = rq; | 163 | task.rq = rq; |
166 | 164 | ||
167 | rc = do_rw_taskfile(drive, &task); | 165 | rc = do_rw_taskfile(drive, &task); |
@@ -170,7 +168,6 @@ static ide_startstop_t __ide_do_rw_disk(ide_drive_t *drive, struct request *rq, | |||
170 | /* fallback to PIO */ | 168 | /* fallback to PIO */ |
171 | task.tf_flags |= IDE_TFLAG_DMA_PIO_FALLBACK; | 169 | task.tf_flags |= IDE_TFLAG_DMA_PIO_FALLBACK; |
172 | ide_tf_set_cmd(drive, &task, 0); | 170 | ide_tf_set_cmd(drive, &task, 0); |
173 | hwif->data_phase = task.data_phase; | ||
174 | ide_init_sg_cmd(drive, rq); | 171 | ide_init_sg_cmd(drive, rq); |
175 | rc = do_rw_taskfile(drive, &task); | 172 | rc = do_rw_taskfile(drive, &task); |
176 | } | 173 | } |