diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-02-05 20:57:51 -0500 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-02-05 20:57:51 -0500 |
commit | 64a57fe4393bae920d03c253173f59d8a7ec8e25 (patch) | |
tree | bfbac6fa370401d519a6fd9433a330dd55efe68d /drivers/ide/ide-iops.c | |
parent | c47137a99c597330b69057158b26061a360c0e09 (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-iops.c')
-rw-r--r-- | drivers/ide/ide-iops.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/ide/ide-iops.c b/drivers/ide/ide-iops.c index 716244c45211..c32e759df208 100644 --- a/drivers/ide/ide-iops.c +++ b/drivers/ide/ide-iops.c | |||
@@ -918,7 +918,9 @@ static ide_startstop_t reset_pollfunc (ide_drive_t *drive) | |||
918 | drive->failures++; | 918 | drive->failures++; |
919 | } else { | 919 | } else { |
920 | printk("%s: reset: ", hwif->name); | 920 | printk("%s: reset: ", hwif->name); |
921 | if ((tmp = hwif->INB(IDE_ERROR_REG)) == 1) { | 921 | tmp = ide_read_error(drive); |
922 | |||
923 | if (tmp == 1) { | ||
922 | printk("success\n"); | 924 | printk("success\n"); |
923 | drive->failures = 0; | 925 | drive->failures = 0; |
924 | } else { | 926 | } else { |