aboutsummaryrefslogtreecommitdiffstats
path: root/package/kernel
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2013-09-18 16:31:49 +0000
committerJohn Crispin <blogic@openwrt.org>2013-09-18 16:31:49 +0000
commit55556c8ae85b2a7dd5a0a4a75eeac60470a00df4 (patch)
treeec382e858a62d74b7210bc4eb94c777793968801 /package/kernel
parent9921bd78e785c8e2948d86504c62fc73157f5dc3 (diff)
downloadupstream-55556c8ae85b2a7dd5a0a4a75eeac60470a00df4.tar.gz
upstream-55556c8ae85b2a7dd5a0a4a75eeac60470a00df4.tar.bz2
upstream-55556c8ae85b2a7dd5a0a4a75eeac60470a00df4.zip
lantiq: fix bug in hcd gpio detetcion code
Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38043 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/kernel')
-rw-r--r--package/kernel/lantiq/ltq-hcd/src/ifxusb_driver.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/kernel/lantiq/ltq-hcd/src/ifxusb_driver.c b/package/kernel/lantiq/ltq-hcd/src/ifxusb_driver.c
index 97f282db6c..425b3a986e 100644
--- a/package/kernel/lantiq/ltq-hcd/src/ifxusb_driver.c
+++ b/package/kernel/lantiq/ltq-hcd/src/ifxusb_driver.c
@@ -469,7 +469,7 @@ static int ifxusb_driver_probe(struct platform_device *_pdev)
#endif*/
gpio_count = of_gpio_count(np);
- while (gpio_count) {
+ while (gpio_count > 0) {
enum of_gpio_flags flags;
int gpio = of_get_gpio_flags(np, --gpio_count, &flags);
if (gpio_request(gpio, "usb"))