usb: gadget: dummy_hcd: set gadget.is_otg before calling bind()
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Thu, 16 Jun 2011 18:36:56 +0000 (20:36 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 1 Jul 2011 21:31:07 +0000 (14:31 -0700)
commit99fd14080e7f0a65b87830bf5062b09f6e80dd13
tree68935492ae61590827f6d49935d7cd0273bcf637
parent2542787430fc46b4e07e0da4c6ec80ed230032e5
usb: gadget: dummy_hcd: set gadget.is_otg before calling bind()

Before commit 53832daea ("usb: gadget: dummy_hcd: use the shared_hcd
infrastructure") the is_otg field was set in dummy_udc_probe(). It seems
to me that this field is used in gadget's bind function. Therefore I'm
moving it before the bind() callback is called.

Cc: Tatyana Brokhman <tlinder@codeaurora.org
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/gadget/dummy_hcd.c