diff options
author | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2008-02-05 22:06:25 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2008-02-05 22:06:25 -0500 |
commit | 551e4fb2465b87de9d4aa1669b27d624435443bb (patch) | |
tree | 316a5816b833a7536071a4ee0913a9b51b4faff8 /drivers/ide/ide-cd.c | |
parent | b297d520b9af536d5580ac505dd316be4cf5560c (diff) | |
parent | dfe799364e7a500389559e1dcd331d995cdc18ea (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/bart/ide-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/bart/ide-2.6: (29 commits)
ide-tape: bump minor driver version
ide-tape: cleanup the remaining codestyle issues
ide-tape: fix syntax error in idetape_identify_device()
ide-tape: remove leftover OnStream support warning
ide-tape: collect module-related macro calls at the end
ide-tape: include proper headers
ide-tape: remove unused "length" arg from idetape_create_read_buffer_cmd()
ide-tape: remove struct idetape_id_gcw
ide-tape: cleanup and fix comments
ide-tape: shorten some function names
ide-tape: remove idetape_increase_max_pipeline_stages()
ide-tape: struct idetape_tape_t: shorten member names v2
ide-tape: struct idetape_tape_t: remove unused members
ide-tape: remove typedef idetape_chrdev_direction_t
ide-tape: simplify code branching in the interrupt handler
ide-tape: remove unreachable code chunk
ide-tape: remove struct idetape_read_position_result_t
ide-tape: refactor the debug logging facility
ide: add ide_read_error() inline helper
ide: add ide_read_[alt]status() inline helpers
...
Diffstat (limited to 'drivers/ide/ide-cd.c')
-rw-r--r-- | drivers/ide/ide-cd.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/ide/ide-cd.c b/drivers/ide/ide-cd.c index ee4d458e2bbf..5e42c19a03e3 100644 --- a/drivers/ide/ide-cd.c +++ b/drivers/ide/ide-cd.c | |||
@@ -295,7 +295,8 @@ static int cdrom_decode_status(ide_drive_t *drive, int good_stat, int *stat_ret) | |||
295 | int stat, err, sense_key; | 295 | int stat, err, sense_key; |
296 | 296 | ||
297 | /* Check for errors. */ | 297 | /* Check for errors. */ |
298 | stat = HWIF(drive)->INB(IDE_STATUS_REG); | 298 | stat = ide_read_status(drive); |
299 | |||
299 | if (stat_ret) | 300 | if (stat_ret) |
300 | *stat_ret = stat; | 301 | *stat_ret = stat; |
301 | 302 | ||
@@ -303,7 +304,7 @@ static int cdrom_decode_status(ide_drive_t *drive, int good_stat, int *stat_ret) | |||
303 | return 0; | 304 | return 0; |
304 | 305 | ||
305 | /* Get the IDE error register. */ | 306 | /* Get the IDE error register. */ |
306 | err = HWIF(drive)->INB(IDE_ERROR_REG); | 307 | err = ide_read_error(drive); |
307 | sense_key = err >> 4; | 308 | sense_key = err >> 4; |
308 | 309 | ||
309 | if (rq == NULL) { | 310 | if (rq == NULL) { |
@@ -692,7 +693,7 @@ int ide_cd_check_ireason(ide_drive_t *drive, int len, int ireason, int rw) | |||
692 | /* Some drives (ASUS) seem to tell us that status | 693 | /* Some drives (ASUS) seem to tell us that status |
693 | * info is available. just get it and ignore. | 694 | * info is available. just get it and ignore. |
694 | */ | 695 | */ |
695 | (void) HWIF(drive)->INB(IDE_STATUS_REG); | 696 | (void)ide_read_status(drive); |
696 | return 0; | 697 | return 0; |
697 | } else { | 698 | } else { |
698 | /* Drive wants a command packet, or invalid ireason... */ | 699 | /* Drive wants a command packet, or invalid ireason... */ |
@@ -1326,7 +1327,7 @@ ide_do_rw_cdrom (ide_drive_t *drive, struct request *rq, sector_t block) | |||
1326 | if (blk_fs_request(rq)) { | 1327 | if (blk_fs_request(rq)) { |
1327 | if (info->cd_flags & IDE_CD_FLAG_SEEKING) { | 1328 | if (info->cd_flags & IDE_CD_FLAG_SEEKING) { |
1328 | unsigned long elapsed = jiffies - info->start_seek; | 1329 | unsigned long elapsed = jiffies - info->start_seek; |
1329 | int stat = HWIF(drive)->INB(IDE_STATUS_REG); | 1330 | int stat = ide_read_status(drive); |
1330 | 1331 | ||
1331 | if ((stat & SEEK_STAT) != SEEK_STAT) { | 1332 | if ((stat & SEEK_STAT) != SEEK_STAT) { |
1332 | if (elapsed < IDECD_SEEK_TIMEOUT) { | 1333 | if (elapsed < IDECD_SEEK_TIMEOUT) { |