Pārlūkot izejas kodu

lantiq: fix bug in hcd gpio detetcion code

Signed-off-by: John Crispin <[email protected]>

SVN-Revision: 38043
John Crispin 12 gadi atpakaļ
vecāks
revīzija
5799adc238
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      package/kernel/lantiq/ltq-hcd/src/ifxusb_driver.c

+ 1 - 1
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"))