aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide/ide-tape.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ide/ide-tape.c')
-rw-r--r--drivers/ide/ide-tape.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/ide/ide-tape.c b/drivers/ide/ide-tape.c
index 2c4c6674db61..2745e5d26848 100644
--- a/drivers/ide/ide-tape.c
+++ b/drivers/ide/ide-tape.c
@@ -920,8 +920,8 @@ static ide_startstop_t idetape_media_access_finished(ide_drive_t *drive)
920 920
921 stat = hwif->tp_ops->read_status(hwif); 921 stat = hwif->tp_ops->read_status(hwif);
922 922
923 if (stat & SEEK_STAT) { 923 if (stat & ATA_DSC) {
924 if (stat & ERR_STAT) { 924 if (stat & ATA_ERR) {
925 /* Error detected */ 925 /* Error detected */
926 if (pc->c[0] != TEST_UNIT_READY) 926 if (pc->c[0] != TEST_UNIT_READY)
927 printk(KERN_ERR "ide-tape: %s: I/O error, ", 927 printk(KERN_ERR "ide-tape: %s: I/O error, ",
@@ -1022,7 +1022,7 @@ static ide_startstop_t idetape_do_request(ide_drive_t *drive,
1022 } 1022 }
1023 1023
1024 if (!test_and_clear_bit(IDE_AFLAG_IGNORE_DSC, &drive->atapi_flags) && 1024 if (!test_and_clear_bit(IDE_AFLAG_IGNORE_DSC, &drive->atapi_flags) &&
1025 (stat & SEEK_STAT) == 0) { 1025 (stat & ATA_DSC) == 0) {
1026 if (postponed_rq == NULL) { 1026 if (postponed_rq == NULL) {
1027 tape->dsc_polling_start = jiffies; 1027 tape->dsc_polling_start = jiffies;
1028 tape->dsc_poll_freq = tape->best_dsc_rw_freq; 1028 tape->dsc_poll_freq = tape->best_dsc_rw_freq;