diff options
-rw-r--r-- | drivers/ata/pata_bf54x.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ata/pata_bf54x.c b/drivers/ata/pata_bf54x.c index e4cf73c4b70b..a75de0684c15 100644 --- a/drivers/ata/pata_bf54x.c +++ b/drivers/ata/pata_bf54x.c | |||
@@ -1417,7 +1417,7 @@ static int bfin_reset_controller(struct ata_host *host) | |||
1417 | count = 10000000; | 1417 | count = 10000000; |
1418 | do { | 1418 | do { |
1419 | status = read_atapi_register(base, ATA_REG_STATUS); | 1419 | status = read_atapi_register(base, ATA_REG_STATUS); |
1420 | } while (count-- && (status & ATA_BUSY)); | 1420 | } while (--count && (status & ATA_BUSY)); |
1421 | 1421 | ||
1422 | /* Enable only ATAPI Device interrupt */ | 1422 | /* Enable only ATAPI Device interrupt */ |
1423 | ATAPI_SET_INT_MASK(base, 1); | 1423 | ATAPI_SET_INT_MASK(base, 1); |