|
@@ -1417,7 +1417,7 @@ static int bfin_reset_controller(struct ata_host *host)
|
|
count = 10000000;
|
|
count = 10000000;
|
|
do {
|
|
do {
|
|
status = read_atapi_register(base, ATA_REG_STATUS);
|
|
status = read_atapi_register(base, ATA_REG_STATUS);
|
|
- } while (count-- && (status & ATA_BUSY));
|
|
|
|
|
|
+ } while (--count && (status & ATA_BUSY));
|
|
|
|
|
|
/* Enable only ATAPI Device interrupt */
|
|
/* Enable only ATAPI Device interrupt */
|
|
ATAPI_SET_INT_MASK(base, 1);
|
|
ATAPI_SET_INT_MASK(base, 1);
|