Commit 0cdd7d4b authored by Kuninori Morimoto's avatar Kuninori Morimoto Committed by Greg Kroah-Hartman

usb: renesas_usbhs: fixup gadget.dev.driver when udc_stop.

current renesas_usbhs is using new style udc_start/stop from
af1d7056
(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: default avatarKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 8885a897
...@@ -776,6 +776,7 @@ static int usbhsg_gadget_stop(struct usb_gadget *gadget, ...@@ -776,6 +776,7 @@ static int usbhsg_gadget_stop(struct usb_gadget *gadget,
return -EINVAL; return -EINVAL;
usbhsg_try_stop(priv, USBHSG_STATUS_REGISTERD); usbhsg_try_stop(priv, USBHSG_STATUS_REGISTERD);
gpriv->gadget.dev.driver = NULL;
gpriv->driver = NULL; gpriv->driver = NULL;
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment