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>
This commit is contained in:
committed by
Bartlomiej Zolnierkiewicz
parent
2207fa5af1
commit
776bb0270e
@@ -31,7 +31,7 @@ ide_startstop_t ide_pc_intr(ide_drive_t *drive, struct ide_atapi_pc *pc,
|
||||
debug_log("Enter %s - interrupt handler\n", __func__);
|
||||
|
||||
if (pc->flags & PC_FLAG_TIMEDOUT) {
|
||||
if (drive->media == ide_floppy)
|
||||
if (drive->media == ide_floppy || drive->media == ide_tape)
|
||||
drive->pc_callback(drive);
|
||||
else
|
||||
pc->callback(drive);
|
||||
@@ -100,7 +100,7 @@ cmd_finished:
|
||||
return ide_stopped;
|
||||
}
|
||||
/* Command finished - Call the callback function */
|
||||
if (drive->media == ide_floppy)
|
||||
if (drive->media == ide_floppy || drive->media == ide_tape)
|
||||
drive->pc_callback(drive);
|
||||
else
|
||||
pc->callback(drive);
|
||||
|
Reference in New Issue
Block a user