tegra: usb: fix wrong error check
[platform/kernel/u-boot.git] / arch / arm / cpu / armv7 / tegra2 / usb.c
index c80de7f..5f2b243 100644 (file)
@@ -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;