projects
/
openwrt
/
staging
/
florian.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
40ac8dd
)
lantiq: fix bug in hcd gpio detetcion code
author
John Crispin
<john@openwrt.org>
Wed, 18 Sep 2013 16:31:49 +0000
(16:31 +0000)
committer
John Crispin
<john@openwrt.org>
Wed, 18 Sep 2013 16:31:49 +0000
(16:31 +0000)
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 38043
package/kernel/lantiq/ltq-hcd/src/ifxusb_driver.c
patch
|
blob
|
history
diff --git
a/package/kernel/lantiq/ltq-hcd/src/ifxusb_driver.c
b/package/kernel/lantiq/ltq-hcd/src/ifxusb_driver.c
index 97f282db6ccee2b6553e826347b6fe91c3163a7c..425b3a986e786917b9cc06a836eaaec4009ea620 100644
(file)
--- 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"))