aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide/ide-cd.c
diff options
context:
space:
mode:
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2008-02-05 20:57:51 -0500
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2008-02-05 20:57:51 -0500
commit64a57fe4393bae920d03c253173f59d8a7ec8e25 (patch)
treebfbac6fa370401d519a6fd9433a330dd55efe68d /drivers/ide/ide-cd.c
parentc47137a99c597330b69057158b26061a360c0e09 (diff)
ide: add ide_read_error() inline helper
Acked-by: Sergei Shtylyov <sshtylyov@ru.mvista.com> Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers/ide/ide-cd.c')
-rw-r--r--drivers/ide/ide-cd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ide/ide-cd.c b/drivers/ide/ide-cd.c
index 892e42e80a32..5e42c19a03e3 100644
--- a/drivers/ide/ide-cd.c
+++ b/drivers/ide/ide-cd.c
@@ -304,7 +304,7 @@ static int cdrom_decode_status(ide_drive_t *drive, int good_stat, int *stat_ret)
304 return 0; 304 return 0;
305 305
306 /* Get the IDE error register. */ 306 /* Get the IDE error register. */
307 err = HWIF(drive)->INB(IDE_ERROR_REG); 307 err = ide_read_error(drive);
308 sense_key = err >> 4; 308 sense_key = err >> 4;
309 309
310 if (rq == NULL) { 310 if (rq == NULL) {