]> git.baikalelectronics.ru Git - kernel.git/commit
pata_bf54x: decrease count first.
authorRoel Kluin <12o3l@tiscali.nl>
Fri, 25 Apr 2008 03:37:54 +0000 (11:37 +0800)
committerJeff Garzik <jgarzik@redhat.com>
Fri, 25 Apr 2008 05:26:28 +0000 (01:26 -0400)
commit8b92080982f3f1f2c68e92de74468eac488e576a
tree8373ddad57fea6c7d85e80e196395b086c994b20
parent551e85d6265312ea900b8990b32b0cdf3f92b0fc
pata_bf54x: decrease count first.

When count reaches 0 the postfix decrement still subtracts (to -1),
so bfin_reset_controller() returns as if the busy flag was cleared
while it was not.

Signed-off-by: Roel Kluin <12o3l@tiscali.nl>
Acked-by: Sonic Zhang <sonic.zhang@analog.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/ata/pata_bf54x.c