summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLucas Stach <dev@lynxeye.de>2012-05-31 01:51:02 +0000
committerAlbert ARIBAUD (U-Boot) <uboot@lilith.(none)>2012-07-09 22:44:33 +0200
commitf857fff6068fe36a327a0ff6d837412caaf2e07d (patch)
treed01bd5eca9be48764df866f8ff8f86fa58a9d618
parentf97daaa2317b68aacfbf19bb7566183e17db3349 (diff)
downloadu-boot-imx-f857fff6068fe36a327a0ff6d837412caaf2e07d.zip
u-boot-imx-f857fff6068fe36a327a0ff6d837412caaf2e07d.tar.gz
u-boot-imx-f857fff6068fe36a327a0ff6d837412caaf2e07d.tar.bz2
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>
-rw-r--r--arch/arm/cpu/armv7/tegra2/usb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/cpu/armv7/tegra2/usb.c b/arch/arm/cpu/armv7/tegra2/usb.c
index c80de7f..5f2b243 100644
--- a/arch/arm/cpu/armv7/tegra2/usb.c
+++ b/arch/arm/cpu/armv7/tegra2/usb.c
@@ -290,7 +290,7 @@ static int init_usb_controller(struct fdt_usb *config,
break;
udelay(1);
}
- if (loop_count == 100000)
+ if (!loop_count)
return -1;
return 0;