]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/ide/ide-atapi.c
ide-tape: use drive->pc_callback instead of pc->callback
[linux-2.6-omap-h63xx.git] / drivers / ide / ide-atapi.c
index 0c4f45247d86eee9dabc34570dd5f23d55c131f3..d5249dfc5546d029e542dde24a11d551a50a7bce 100644 (file)
@@ -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);