]> git.baikalelectronics.ru Git - kernel.git/commit
usb: dwc3: gadget: don't prevent gadget from being probed if we fail
authorFelipe Balbi <balbi@ti.com>
Mon, 15 Jul 2013 09:36:35 +0000 (12:36 +0300)
committerFelipe Balbi <balbi@ti.com>
Mon, 15 Jul 2013 09:36:35 +0000 (12:36 +0300)
commit115cb1578fbe0b2d64afd41eb75a1eb63f975167
treeb5cee1cff2efe16856a4bfc56d1ce92a4668991c
parent07e109360660cc58aefd754a4369fe475b61e495
usb: dwc3: gadget: don't prevent gadget from being probed if we fail

In case we fail our ->udc_start() callback, we
should be ready to accept another modprobe following
the failed one.

We had forgotten to clear dwc->gadget_driver back
to NULL and, because of that, we were preventing
gadget driver modprobe from being retried.

Cc: <stable@vger.kernel.org>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/dwc3/gadget.c