]> git.dujemihanovic.xyz Git - u-boot.git/commit
tegra: usb: fix wrong error check
authorLucas Stach <dev@lynxeye.de>
Thu, 31 May 2012 01:51:02 +0000 (01:51 +0000)
committerAlbert ARIBAUD (U-Boot) <uboot@lilith.(none)>
Mon, 9 Jul 2012 20:44:33 +0000 (22:44 +0200)
commitf857fff6068fe36a327a0ff6d837412caaf2e07d
treed01bd5eca9be48764df866f8ff8f86fa58a9d618
parentf97daaa2317b68aacfbf19bb7566183e17db3349
tegra: usb: fix wrong error check

loop_count runs down from 10000, so the correct condition to error out
is ==0.

Signed-off-by: Lucas Stach <dev@lynxeye.de>
Acked-by: Stephen Warren <swarren@wwwdotorg.org>
CC: Stephen Warren <swarren@wwwdotorg.org>
CC: Tom Warren <twarren.nvidia@gmail.com>
Tested-by: Stephen Warren <swarren@wwwdotorg.org>
Signed-off-by: Tom Warren <twarren@nvidia.com>
arch/arm/cpu/armv7/tegra2/usb.c