usb: musb: gadget: clear gadget_driver when gadget is stopped
authorGrazvydas Ignotas <notasas@gmail.com>
Sun, 10 Mar 2013 00:49:14 +0000 (02:49 +0200)
committerFelipe Balbi <balbi@ti.com>
Fri, 22 Mar 2013 06:41:28 +0000 (08:41 +0200)
Some musb glue drivers use gadget_driver pointer to know if any gadget
drivers are loaded at some moment and base further decisions on it,
like to do runtime suspend/resume or not. Right now the pointer is
left alone on stop and OMAP musb glue later does wrong runtime_pm
decisions because of it.

Clear the gadget_driver pointer on remove, it's invalid after stop
anyway.

Signed-off-by: Grazvydas Ignotas <notasas@gmail.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>

No differences found