aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide/ide-atapi.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ide/ide-atapi.c')
-rw-r--r--drivers/ide/ide-atapi.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/ide/ide-atapi.c b/drivers/ide/ide-atapi.c
index 75df05add1b9..f1b1b71cb74c 100644
--- a/drivers/ide/ide-atapi.c
+++ b/drivers/ide/ide-atapi.c
@@ -483,7 +483,7 @@ static ide_startstop_t ide_pc_intr(ide_drive_t *drive)
483 rq->cmd[0], bcount); 483 rq->cmd[0], bcount);
484next_irq: 484next_irq:
485 /* And set the interrupt handler again */ 485 /* And set the interrupt handler again */
486 ide_set_handler(drive, ide_pc_intr, timeout, NULL); 486 ide_set_handler(drive, ide_pc_intr, timeout);
487 return ide_started; 487 return ide_started;
488} 488}
489 489
@@ -602,11 +602,13 @@ static ide_startstop_t ide_transfer_pc(ide_drive_t *drive)
602 } 602 }
603 } 603 }
604 604
605 hwif->expiry = expiry;
606
605 /* Set the interrupt routine */ 607 /* Set the interrupt routine */
606 ide_set_handler(drive, 608 ide_set_handler(drive,
607 (dev_is_idecd(drive) ? drive->irq_handler 609 (dev_is_idecd(drive) ? drive->irq_handler
608 : ide_pc_intr), 610 : ide_pc_intr),
609 timeout, expiry); 611 timeout);
610 612
611 /* Begin DMA, if necessary */ 613 /* Begin DMA, if necessary */
612 if (dev_is_idecd(drive)) { 614 if (dev_is_idecd(drive)) {