diff options
author | Borislav Petkov <petkovbb@googlemail.com> | 2009-01-02 10:12:56 -0500 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2009-01-02 10:12:56 -0500 |
commit | 28ad91db77755f1c49d79652de11b28ee2cfbf03 (patch) | |
tree | 927c7bc473463c331824cef80bd285e43c4debc7 /drivers/ide/ide-atapi.c | |
parent | 65a3309e552585c4908e50e3c9736afb764c97c0 (diff) |
ide-atapi: remove timeout arg to ide_issue_pc
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>
Diffstat (limited to 'drivers/ide/ide-atapi.c')
-rw-r--r-- | drivers/ide/ide-atapi.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/ide/ide-atapi.c b/drivers/ide/ide-atapi.c index fa7a70a3f24c..c470dbb155ca 100644 --- a/drivers/ide/ide-atapi.c +++ b/drivers/ide/ide-atapi.c | |||
@@ -562,11 +562,12 @@ static ide_startstop_t ide_transfer_pc(ide_drive_t *drive) | |||
562 | return ide_started; | 562 | return ide_started; |
563 | } | 563 | } |
564 | 564 | ||
565 | ide_startstop_t ide_issue_pc(ide_drive_t *drive, unsigned int timeout) | 565 | ide_startstop_t ide_issue_pc(ide_drive_t *drive) |
566 | { | 566 | { |
567 | struct ide_atapi_pc *pc; | 567 | struct ide_atapi_pc *pc; |
568 | ide_hwif_t *hwif = drive->hwif; | 568 | ide_hwif_t *hwif = drive->hwif; |
569 | ide_expiry_t *expiry = NULL; | 569 | ide_expiry_t *expiry = NULL; |
570 | unsigned int timeout; | ||
570 | u32 tf_flags; | 571 | u32 tf_flags; |
571 | u16 bcount; | 572 | u16 bcount; |
572 | 573 | ||
@@ -574,6 +575,7 @@ ide_startstop_t ide_issue_pc(ide_drive_t *drive, unsigned int timeout) | |||
574 | tf_flags = IDE_TFLAG_OUT_NSECT | IDE_TFLAG_OUT_LBAL; | 575 | tf_flags = IDE_TFLAG_OUT_NSECT | IDE_TFLAG_OUT_LBAL; |
575 | bcount = ide_cd_get_xferlen(hwif->hwgroup->rq); | 576 | bcount = ide_cd_get_xferlen(hwif->hwgroup->rq); |
576 | expiry = ide_cd_expiry; | 577 | expiry = ide_cd_expiry; |
578 | timeout = ATAPI_WAIT_PC; | ||
577 | 579 | ||
578 | if (drive->dma) | 580 | if (drive->dma) |
579 | drive->dma = !hwif->dma_ops->dma_setup(drive); | 581 | drive->dma = !hwif->dma_ops->dma_setup(drive); |
@@ -600,6 +602,9 @@ ide_startstop_t ide_issue_pc(ide_drive_t *drive, unsigned int timeout) | |||
600 | 602 | ||
601 | if (!drive->dma) | 603 | if (!drive->dma) |
602 | pc->flags &= ~PC_FLAG_DMA_OK; | 604 | pc->flags &= ~PC_FLAG_DMA_OK; |
605 | |||
606 | timeout = (drive->media == ide_floppy) ? WAIT_FLOPPY_CMD | ||
607 | : WAIT_TAPE_CMD; | ||
603 | } | 608 | } |
604 | 609 | ||
605 | ide_pktcmd_tf_load(drive, tf_flags, bcount, drive->dma); | 610 | ide_pktcmd_tf_load(drive, tf_flags, bcount, drive->dma); |