aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide/ide-atapi.c
diff options
context:
space:
mode:
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2008-10-13 15:39:32 -0400
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2008-10-13 15:39:32 -0400
commitaa5d2de7b080873f6d9ac3aede423c9713bf0caa (patch)
treebabf0dbf6a7d7e545053736e5ae6976faddabfd7 /drivers/ide/ide-atapi.c
parent85e39035ca381846b031690f4d1ac1f0660da0a2 (diff)
ide: make ide_pc_intr() static
* Always use ide_pc_intr as a handler in ide_pc_intr(). * Remove no longer used ide*_pc_intr() and 'handler' argument from ide_{transfer_pc,pc_intr}(). * Make ide_pc_intr() static. There should be no functional changes caused by this patch. Cc: Borislav Petkov <petkovbb@gmail.com> Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers/ide/ide-atapi.c')
-rw-r--r--drivers/ide/ide-atapi.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/drivers/ide/ide-atapi.c b/drivers/ide/ide-atapi.c
index f46bc5124e00..b558663418d8 100644
--- a/drivers/ide/ide-atapi.c
+++ b/drivers/ide/ide-atapi.c
@@ -246,7 +246,12 @@ int ide_scsi_expiry(ide_drive_t *drive)
246} 246}
247EXPORT_SYMBOL_GPL(ide_scsi_expiry); 247EXPORT_SYMBOL_GPL(ide_scsi_expiry);
248 248
249ide_startstop_t ide_pc_intr(ide_drive_t *drive, ide_handler_t *handler) 249/*
250 * This is the usual interrupt handler which will be called during a packet
251 * command. We will transfer some of the data (as requested by the drive)
252 * and will re-point interrupt handler to us.
253 */
254static ide_startstop_t ide_pc_intr(ide_drive_t *drive)
250{ 255{
251 struct ide_atapi_pc *pc = drive->pc; 256 struct ide_atapi_pc *pc = drive->pc;
252 ide_hwif_t *hwif = drive->hwif; 257 ide_hwif_t *hwif = drive->hwif;
@@ -425,10 +430,9 @@ cmd_finished:
425 rq->cmd[0], bcount); 430 rq->cmd[0], bcount);
426next_irq: 431next_irq:
427 /* And set the interrupt handler again */ 432 /* And set the interrupt handler again */
428 ide_set_handler(drive, handler, timeout, expiry); 433 ide_set_handler(drive, ide_pc_intr, timeout, expiry);
429 return ide_started; 434 return ide_started;
430} 435}
431EXPORT_SYMBOL_GPL(ide_pc_intr);
432 436
433static u8 ide_read_ireason(ide_drive_t *drive) 437static u8 ide_read_ireason(ide_drive_t *drive)
434{ 438{
@@ -464,8 +468,7 @@ static u8 ide_wait_ireason(ide_drive_t *drive, u8 ireason)
464 return ireason; 468 return ireason;
465} 469}
466 470
467ide_startstop_t ide_transfer_pc(ide_drive_t *drive, 471ide_startstop_t ide_transfer_pc(ide_drive_t *drive, unsigned int timeout,
468 ide_handler_t *handler, unsigned int timeout,
469 ide_expiry_t *expiry) 472 ide_expiry_t *expiry)
470{ 473{
471 struct ide_atapi_pc *pc = drive->pc; 474 struct ide_atapi_pc *pc = drive->pc;
@@ -491,7 +494,7 @@ ide_startstop_t ide_transfer_pc(ide_drive_t *drive,
491 } 494 }
492 495
493 /* Set the interrupt routine */ 496 /* Set the interrupt routine */
494 ide_set_handler(drive, handler, timeout, expiry); 497 ide_set_handler(drive, ide_pc_intr, timeout, expiry);
495 498
496 /* Begin DMA, if necessary */ 499 /* Begin DMA, if necessary */
497 if (pc->flags & PC_FLAG_DMA_OK) { 500 if (pc->flags & PC_FLAG_DMA_OK) {