diff options
author | Grazvydas Ignotas <notasas@gmail.com> | 2013-03-10 00:49:14 (GMT) |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2013-03-22 06:41:28 (GMT) |
commit | e21de10cd8b1338200d96038aa66fb966fcf6ed0 (patch) | |
tree | a254fc3d77f6bdb8924e1dcbdc4f500ee684101e /usr | |
parent | e5615112807c27dd256f0bd8fc8b1f6f5e1b90af (diff) | |
download | linux-fsl-qoriq-e21de10cd8b1338200d96038aa66fb966fcf6ed0.tar.xz |
usb: musb: gadget: clear gadget_driver when gadget is stopped
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>
Diffstat (limited to 'usr')
0 files changed, 0 insertions, 0 deletions