aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2013-09-18 16:31:49 +0000
committerJohn Crispin <john@openwrt.org>2013-09-18 16:31:49 +0000
commit5799adc238c57099ee036c2c78daee0e794ab3e9 (patch)
tree0799927305601989b05abcb30c6631a2b3b9ee18
parent40ac8dd9df069ec06b25ce64018f1c229eaa659a (diff)
downloadupstream-5799adc238c57099ee036c2c78daee0e794ab3e9.tar.gz
upstream-5799adc238c57099ee036c2c78daee0e794ab3e9.tar.bz2
upstream-5799adc238c57099ee036c2c78daee0e794ab3e9.zip
lantiq: fix bug in hcd gpio detetcion code
Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 38043
-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"))