aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide/ide-tape.c
diff options
context:
space:
mode:
authorBorislav Petkov <petkovbb@googlemail.com>2008-07-23 13:55:59 -0400
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2008-07-23 13:55:59 -0400
commit776bb0270ea72c40f95347dcac868c9f602dcb3e (patch)
treed2fee8593384df75c4a7c2ff70e4bb39eb670e15 /drivers/ide/ide-tape.c
parent2207fa5af1507ea018fc95e777276edb1ca5601a (diff)
ide-tape: use drive->pc_callback instead of pc->callback
The if-else block in the IRQ handler is only temporary so that bisect searches don't break and it'll be removed after converting the remainder of the drivers. There should be no functionality change resulting from this patch. Signed-off-by: Borislav Petkov <petkovbb@gmail.com> Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers/ide/ide-tape.c')
-rw-r--r--drivers/ide/ide-tape.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/ide/ide-tape.c b/drivers/ide/ide-tape.c
index 663671f69f88..38ca7b1b7cf9 100644
--- a/drivers/ide/ide-tape.c
+++ b/drivers/ide/ide-tape.c
@@ -689,7 +689,6 @@ static void idetape_init_pc(struct ide_atapi_pc *pc)
689 pc->buf_size = IDETAPE_PC_BUFFER_SIZE; 689 pc->buf_size = IDETAPE_PC_BUFFER_SIZE;
690 pc->bh = NULL; 690 pc->bh = NULL;
691 pc->b_data = NULL; 691 pc->b_data = NULL;
692 pc->callback = ide_tape_callback;
693} 692}
694 693
695static void idetape_create_request_sense_cmd(struct ide_atapi_pc *pc) 694static void idetape_create_request_sense_cmd(struct ide_atapi_pc *pc)
@@ -886,7 +885,7 @@ static ide_startstop_t idetape_issue_pc(ide_drive_t *drive,
886 pc->error = IDETAPE_ERROR_GENERAL; 885 pc->error = IDETAPE_ERROR_GENERAL;
887 } 886 }
888 tape->failed_pc = NULL; 887 tape->failed_pc = NULL;
889 pc->callback(drive); 888 drive->pc_callback(drive);
890 return ide_stopped; 889 return ide_stopped;
891 } 890 }
892 debug_log(DBG_SENSE, "Retry #%d, cmd = %02X\n", pc->retries, pc->c[0]); 891 debug_log(DBG_SENSE, "Retry #%d, cmd = %02X\n", pc->retries, pc->c[0]);
@@ -948,7 +947,7 @@ static ide_startstop_t idetape_media_access_finished(ide_drive_t *drive)
948 pc->error = IDETAPE_ERROR_GENERAL; 947 pc->error = IDETAPE_ERROR_GENERAL;
949 tape->failed_pc = NULL; 948 tape->failed_pc = NULL;
950 } 949 }
951 pc->callback(drive); 950 drive->pc_callback(drive);
952 return ide_stopped; 951 return ide_stopped;
953} 952}
954 953
@@ -2465,6 +2464,8 @@ static void idetape_setup(ide_drive_t *drive, idetape_tape_t *tape, int minor)
2465 u8 gcw[2]; 2464 u8 gcw[2];
2466 u16 *ctl = (u16 *)&tape->caps[12]; 2465 u16 *ctl = (u16 *)&tape->caps[12];
2467 2466
2467 drive->pc_callback = ide_tape_callback;
2468
2468 spin_lock_init(&tape->lock); 2469 spin_lock_init(&tape->lock);
2469 drive->dsc_overlap = 1; 2470 drive->dsc_overlap = 1;
2470 if (drive->hwif->host_flags & IDE_HFLAG_NO_DSC) { 2471 if (drive->hwif->host_flags & IDE_HFLAG_NO_DSC) {