From fb789c32e57406307ae9530a01cf8a12e35bed06 Mon Sep 17 00:00:00 2001 From: Roel Kluin <12o3l@tiscali.nl> Date: Fri, 25 Apr 2008 11:37:54 +0800 Subject: [PATCH] --- yaml --- r: 93401 b: refs/heads/master c: f9d42491723dbb77bdc9b9dc7e096ea57d535992 h: refs/heads/master i: 93399: 379c84c9967ca527a7610ad40ad94cdc43329320 v: v3 --- [refs] | 2 +- trunk/drivers/ata/pata_bf54x.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index 40169bf80c15..79c8897bac2c 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 85afb934575abdff1b2ac8ea4d522d1355f22a89 +refs/heads/master: f9d42491723dbb77bdc9b9dc7e096ea57d535992 diff --git a/trunk/drivers/ata/pata_bf54x.c b/trunk/drivers/ata/pata_bf54x.c index e4cf73c4b70b..a75de0684c15 100644 --- a/trunk/drivers/ata/pata_bf54x.c +++ b/trunk/drivers/ata/pata_bf54x.c @@ -1417,7 +1417,7 @@ static int bfin_reset_controller(struct ata_host *host) count = 10000000; do { status = read_atapi_register(base, ATA_REG_STATUS); - } while (count-- && (status & ATA_BUSY)); + } while (--count && (status & ATA_BUSY)); /* Enable only ATAPI Device interrupt */ ATAPI_SET_INT_MASK(base, 1);