diff options
author | Borislav Petkov <petkovbb@googlemail.com> | 2009-01-02 10:12:53 -0500 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2009-01-02 10:12:53 -0500 |
commit | 5fe3110431ccf437607bdc11ac3677bf3eeee6e3 (patch) | |
tree | d340f0d5fd6abe6b8ec9bb395c647f7bf75a76a2 /drivers | |
parent | 152fe1cc38ebebb81724663e3b1e1e10272a729e (diff) |
ide-atapi: remove ide-scsi remnants from ide_transfer_pc()
Signed-off-by: Borislav Petkov <petkovbb@gmail.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/ide/ide-atapi.c | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/drivers/ide/ide-atapi.c b/drivers/ide/ide-atapi.c index ff6b567c0199..f5bf405c36aa 100644 --- a/drivers/ide/ide-atapi.c +++ b/drivers/ide/ide-atapi.c | |||
@@ -550,8 +550,7 @@ static ide_startstop_t ide_transfer_pc(ide_drive_t *drive) | |||
550 | } | 550 | } |
551 | 551 | ||
552 | ireason = ide_read_ireason(drive); | 552 | ireason = ide_read_ireason(drive); |
553 | if (drive->media == ide_tape && | 553 | if (drive->media == ide_tape) |
554 | (drive->dev_flags & IDE_DFLAG_SCSI) == 0) | ||
555 | ireason = ide_wait_ireason(drive, ireason); | 554 | ireason = ide_wait_ireason(drive, ireason); |
556 | 555 | ||
557 | if ((ireason & ATAPI_COD) == 0 || (ireason & ATAPI_IO)) { | 556 | if ((ireason & ATAPI_COD) == 0 || (ireason & ATAPI_IO)) { |
@@ -569,14 +568,9 @@ static ide_startstop_t ide_transfer_pc(ide_drive_t *drive) | |||
569 | timeout = drive->pc_delay; | 568 | timeout = drive->pc_delay; |
570 | expiry = &ide_delayed_transfer_pc; | 569 | expiry = &ide_delayed_transfer_pc; |
571 | } else { | 570 | } else { |
572 | if (drive->dev_flags & IDE_DFLAG_SCSI) { | 571 | timeout = (drive->media == ide_floppy) ? WAIT_FLOPPY_CMD |
573 | timeout = ide_scsi_get_timeout(pc); | 572 | : WAIT_TAPE_CMD; |
574 | expiry = ide_scsi_expiry; | 573 | expiry = NULL; |
575 | } else { | ||
576 | timeout = (drive->media == ide_floppy) ? WAIT_FLOPPY_CMD | ||
577 | : WAIT_TAPE_CMD; | ||
578 | expiry = NULL; | ||
579 | } | ||
580 | } | 574 | } |
581 | 575 | ||
582 | /* Set the interrupt routine */ | 576 | /* Set the interrupt routine */ |