aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide/ide-atapi.c
diff options
context:
space:
mode:
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2009-03-27 07:46:46 -0400
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2009-03-27 07:46:46 -0400
commit60c0cd02b254805691cdc61101ada6af7bd56fde (patch)
tree1b600eb9f22034824bf21377041f470c09af09c7 /drivers/ide/ide-atapi.c
parentb788ee9c6561fd9219a503216284d61036a0dc0b (diff)
ide: set hwif->expiry prior to calling [__]ide_set_handler()
* Set hwif->expiry prior to calling [__]ide_set_handler() and drop 'expiry' argument. * Set hwif->expiry to NULL in ide_{timer_expiry,intr}() and remove 'hwif->expiry = NULL' assignments. There should be no functional changes caused by this patch. Acked-by: Sergei Shtylyov <sshtylyov@ru.mvista.com> Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
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)) {