Skip to content

Commit

Permalink
usb: renesas_usbhs: fixup gadget.dev.driver when udc_stop.
Browse files Browse the repository at this point in the history
current renesas_usbhs is using new style udc_start/stop from
af1d705
(usb: gadget: renesas: convert to new style).

But current renesas_usbhs driver didn't care about gadget.dev.driver
when udc_stop. it cause rmmod oops.
This patch care it.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Kuninori Morimoto authored and Greg Kroah-Hartman committed Nov 29, 2011
1 parent 8885a89 commit 0cdd7d4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/usb/renesas_usbhs/mod_gadget.c
Original file line number Diff line number Diff line change
Expand Up @@ -776,6 +776,7 @@ static int usbhsg_gadget_stop(struct usb_gadget *gadget,
return -EINVAL;

usbhsg_try_stop(priv, USBHSG_STATUS_REGISTERD);
gpriv->gadget.dev.driver = NULL;
gpriv->driver = NULL;

return 0;
Expand Down

0 comments on commit 0cdd7d4

Please sign in to comment.