aboutsummaryrefslogtreecommitdiff
path: root/drivers/ide/ide-atapi.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ide/ide-atapi.c')
-rw-r--r--drivers/ide/ide-atapi.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/drivers/ide/ide-atapi.c b/drivers/ide/ide-atapi.c
index 6789b81ea78..0c4f45247d8 100644
--- a/drivers/ide/ide-atapi.c
+++ b/drivers/ide/ide-atapi.c
@@ -31,7 +31,10 @@ 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) {
- pc->callback(drive);
+ if (drive->media == ide_floppy)
+ drive->pc_callback(drive);
+ else
+ pc->callback(drive);
return ide_stopped;
}
@@ -97,7 +100,10 @@ cmd_finished:
return ide_stopped;
}
/* Command finished - Call the callback function */
- pc->callback(drive);
+ if (drive->media == ide_floppy)
+ drive->pc_callback(drive);
+ else
+ pc->callback(drive);
return ide_stopped;
}