diff options
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 { |