]> git.baikalelectronics.ru Git - kernel.git/commit
usb: renesas_usbhs: gadget: remove extra check on udc_stop
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Tue, 9 Jul 2013 05:47:37 +0000 (22:47 -0700)
committerFelipe Balbi <balbi@ti.com>
Mon, 15 Jul 2013 10:01:24 +0000 (13:01 +0300)
commit34da5cdcf3518ac19d61d57ad5ad8a174e030381
tree97dd07e8dd943b55d220a8846921ee5a1d7de077
parentb5da6bde5b8af6761aafcbac823448bb0b7e7ac1
usb: renesas_usbhs: gadget: remove extra check on udc_stop

usb_gadget_ops :: udc_stop might be called with driver = NULL since
7f4a05bba82fe8074a3505c2d9122520bbd9d63a
(usb: gadget: udc-core: fix a regression during gadget driver unbinding)

Because of that, 2nd times insmod goes fail.
This patch fixes it up.

Reported-by: Yusuke Goda <yusuke.goda.sx@renesas.com>
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/renesas_usbhs/mod_gadget.c