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>
This commit is contained in:
parent
f97daaa231
commit
f857fff606
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user