usb: renesas_usbhs: fixup usbhsg_for_each_uep 1st pos
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Wed, 13 Jul 2011 05:01:29 +0000 (22:01 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 8 Aug 2011 19:34:45 +0000 (12:34 -0700)
1st pos of __usbhsg_for_each_uep() was wrong.
Expected uep were ep1, ep2, ep3...
but each uep were ep0, ep2, ep3 ...
This patch modify it.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/renesas_usbhs/mod_gadget.c

index e7101dc31e41aad6c213080261551ffff91e101e..cb2d451d511ec07bbd099c05b43c3ffa3ad0a27e 100644 (file)
@@ -77,7 +77,7 @@ struct usbhsg_recip_handle {
                struct usbhsg_gpriv, mod)
 
 #define __usbhsg_for_each_uep(start, pos, g, i)        \
-       for (i = start, pos = (g)->uep;         \
+       for (i = start, pos = (g)->uep + i;     \
             i < (g)->uep_size;                 \
             i++, pos = (g)->uep + i)